log
plantimager.log Link
configure_logger Link
configure_logger(name, log_path='', log_level='INFO')
Return a configured logger.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the logger. |
required |
log_path
|
str
|
A file path to save the log.
Defaults to |
''
|
log_level
|
(CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET)
|
A valid logging level.
Defaults to |
'CRITICAL'
|
Source code in plantimager/log.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
get_logging_config Link
get_logging_config(name='root', log_level='INFO')
Return the logging configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the logger.
Defaults to |
'root'
|
log_level
|
(CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET)
|
A valid logging level.
Defaults to |
'CRITICAL'
|
Source code in plantimager/log.py
61 62 63 64 65 66 67 68 69 70 71 72 73 |
|