logging
A set of utilities for setting up logging across YouSleep components.
set_root_logging(level='INFO', fmt='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
¶
Set the logging level and format for the root logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level
|
str
|
Logging level to set. |
'INFO'
|
fmt
|
str
|
Logging format to set. |
'%(asctime)s %(levelname)-8s %(message)s'
|
datefmt
|
str
|
Date format to set. |
'%Y-%m-%d %H:%M:%S'
|
Returns:
| Type | Description |
|---|---|
None
|
None |
Examples: