Logger
This page contains the API documentation for the gradual.reporting.logger module.
gradual.reporting.logger
Attributes
BACKUP_COUNT = 15
module-attribute
FILE_SIZE = 5 * 1024 * 1024
module-attribute
Functions
size_based_logger(name: str, file_size: int = FILE_SIZE, backup_count: int = BACKUP_COUNT, log_dir: str = 'logs/stress_test')
Create a logger that logs to a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the logger. |
required |
file_size
|
int
|
The size of the log file in bytes. |
FILE_SIZE
|
backup_count
|
int
|
The number of backup log files to keep. |
BACKUP_COUNT
|
log_dir
|
str
|
The directory to log to. |
'logs/stress_test'
|