Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance: add a set_logger method #273

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Commits on May 3, 2024

  1. generator: fix python 3.12 warning

    Citing from Python 3.12 release:
    "A backslash-character pair that is not a valid escape sequence now generates
     a SyntaxWarning (...) In a future Python version, SyntaxError will eventually
     be raised, instead of SyntaxWarning."
    
     https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
    garfvl committed May 3, 2024
    Configuration menu
    Copy the full SHA
    b11669e View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. generator: add a find_libc library

    Add a way to load the local standard C library.
    This could be used to load some C standard functions, like *printf ones.
    
    This should work on Linux, Windows and macOS/Darwin environments.
    garfvl committed May 18, 2024
    Configuration menu
    Copy the full SHA
    6d73c64 View commit details
    Browse the repository at this point in the history
  2. Instance: add a set_logger method

    Adds a way to link libVLC log system to a python logging.Logger object.
    
    The logger and log callback is attached to the libVLC Instance object to avoid
    the python garbage collector to destroy them too soon.
    
    NOTE: as libVLC log messages are based on a printf + va_list format, we
    need to use the standard C `vsnprintf` function with a max fixed size output.
    garfvl committed May 18, 2024
    Configuration menu
    Copy the full SHA
    6896d1f View commit details
    Browse the repository at this point in the history
  3. test: add a logger test

    Adds a functional test for the Instance.set_logger method.
    This will also test the log_get_context, as this is part of the logger
    output.
    garfvl committed May 18, 2024
    Configuration menu
    Copy the full SHA
    722c546 View commit details
    Browse the repository at this point in the history
  4. Instance: add the logger getter

    This can be useful if some logger is set and you want to get access to
    it afterwards.
    garfvl committed May 18, 2024
    Configuration menu
    Copy the full SHA
    22a22f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    11a6b8a View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    ce72918 View commit details
    Browse the repository at this point in the history