fastvideo.v1.logger#

Logging configuration for fastvideo.v1.

Module Contents#

Functions#

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.

init_logger

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.

Data#

API#

fastvideo.v1.logger.DEFAULT_LOGGING_CONFIG[source]#

None

fastvideo.v1.logger.FASTVIDEO_CONFIGURE_LOGGING[source]#

None

fastvideo.v1.logger.FASTVIDEO_LOGGING_CONFIG_PATH[source]#

None

fastvideo.v1.logger.FASTVIDEO_LOGGING_LEVEL[source]#

None

fastvideo.v1.logger.FASTVIDEO_LOGGING_PREFIX[source]#

None

fastvideo.v1.logger.GREEN[source]#

β€˜\x1b[92m’

fastvideo.v1.logger.RED[source]#

β€˜\x1b[91m’

fastvideo.v1.logger.RESET[source]#

β€˜\x1b[0;0m’

fastvideo.v1.logger.enable_trace_function_call(log_file_path: str, root_dir: Optional[str] = None)[source]#

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.

fastvideo.v1.logger.init_logger(name: str) fastvideo.v1.logger._FastvideoLogger[source]#

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.

fastvideo.v1.logger.logger[source]#

β€˜init_logger(…)’