oxytcmri.infrastructure.logger
¶
Logging configuration module for the package.
Classes:
| Name | Description |
|---|---|
Logger |
Logger class for configuring logging settings. |
Logger(settings)
¶
Logger class for configuring logging settings.
This class sets up logging configuration based on the provided settings.
Attributes:
| Name | Type | Description |
|---|---|---|
log_level |
str
|
The logging level. |
save_to_file |
bool
|
Whether to save logs to a file. |
log_to_console |
bool
|
Whether to log to console. |
Initialize the logger with the given settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
Settings
|
The settings object containing logging configuration. |
required |
Methods:
| Name | Description |
|---|---|
get_log_level |
|
get_save_to_file |
|
get_log_to_console |
|
setup |
Set up logging configuration for the package. |
Source code in oxytcmri/infrastructure/logger.py
27 28 29 30 31 32 33 34 35 36 37 38 39 | |
settings = settings
instance-attribute
¶
log_level = self.get_log_level()
instance-attribute
¶
save_to_file = self.get_save_to_file()
instance-attribute
¶
log_to_console = self.get_log_to_console()
instance-attribute
¶
get_log_level()
¶
Source code in oxytcmri/infrastructure/logger.py
41 42 43 44 45 | |
get_save_to_file()
¶
Source code in oxytcmri/infrastructure/logger.py
47 48 49 50 51 | |
get_log_to_console()
¶
Source code in oxytcmri/infrastructure/logger.py
53 54 55 56 57 | |
setup()
¶
Set up logging configuration for the package.
Source code in oxytcmri/infrastructure/logger.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |