Logger
add_file_logging(file_path='iot-dqa.log')
Add file logging to the logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path |
str
|
Path to the log file. Defaults to 'iot-dqa.log'. |
'iot-dqa.log'
|
Source code in iot_dqa/utils/logger.py
configure_logging(level=logging.WARNING)
Configure the logging level for the package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level |
int
|
Logging level (e.g., logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR) |
WARNING
|
Example
Set logging level to INFO
configure_logging(logging.INFO)