super_gradients.common.auto_logging package
Submodules
super_gradients.common.auto_logging.auto_logger module
- class super_gradients.common.auto_logging.auto_logger.AutoLoggerConfig[source]
Bases:
object
A Class for the Automated Logging Config that is created from the JSON config file (auto_logging_conf)
- static generate_config_for_module_name(module_name, training_log_path=None, log_level='INFO', max_bytes=10485760, logs_dir_path=None, handlers_list=None) → dict[source]
- generate_config_for_module_name - Returns a Config Dict For Logging
- param module_name
The Python Module name to create auto_logging for
- param log_level
Minimal log level to set for the new auto_logging
- param max_bytes
Max size for the log file before rotation starts
- param handlers_list
A list specifying the handlers (Console, etc..) - Better Leave Empty or None
- param training_log_path
Path to training log file which all modules of super_gradients will write to. Ignored when set to None.
- param logs_dir_path
Path to sg_logs directory (default=None), where module logs will be saved. When set to None- module logs will be saved in ~/sg_logs (created if path does not exist). Main use case is for testing.
- return
python dict() with the new auto_logging for the module
Module contents
- class super_gradients.common.auto_logging.AutoLoggerConfig[source]
Bases:
object
A Class for the Automated Logging Config that is created from the JSON config file (auto_logging_conf)
- static generate_config_for_module_name(module_name, training_log_path=None, log_level='INFO', max_bytes=10485760, logs_dir_path=None, handlers_list=None) → dict[source]
- generate_config_for_module_name - Returns a Config Dict For Logging
- param module_name
The Python Module name to create auto_logging for
- param log_level
Minimal log level to set for the new auto_logging
- param max_bytes
Max size for the log file before rotation starts
- param handlers_list
A list specifying the handlers (Console, etc..) - Better Leave Empty or None
- param training_log_path
Path to training log file which all modules of super_gradients will write to. Ignored when set to None.
- param logs_dir_path
Path to sg_logs directory (default=None), where module logs will be saved. When set to None- module logs will be saved in ~/sg_logs (created if path does not exist). Main use case is for testing.
- return
python dict() with the new auto_logging for the module