logger ¶
Logging configuration for fastvideo.
Functions:¶
fastvideo.logger.enable_trace_function_call ¶
Enable tracing of every function call in code under root_dir. This is useful for debugging hangs or crashes. log_file_path is the path to the log file. root_dir is the root directory of the code to trace. If None, it is the fastvideo root directory.
Note that this call is thread-level, any threads calling this function will have the trace enabled. Other threads will not be affected.
Source code in fastvideo/logger.py
fastvideo.logger.init_logger ¶
init_logger(name: str) -> _FastvideoLogger
The main purpose of this function is to ensure that loggers are retrieved in such a way that we can be sure the root fastvideo logger has already been configured.