Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom transformers module.
(name: Optional[str] = None)
| 145 | |
| 146 | |
| 147 | def get_logger(name: Optional[str] = None) -> logging.Logger: |
| 148 | """ |
| 149 | Return a logger with the specified name. |
| 150 | |
| 151 | This function is not supposed to be directly accessed unless you are writing a custom transformers module. |
| 152 | """ |
| 153 | |
| 154 | if name is None: |
| 155 | name = _get_library_name() |
| 156 | |
| 157 | _configure_library_root_logger() |
| 158 | return logging.getLogger(name) |
| 159 | |
| 160 | |
| 161 | def get_verbosity() -> int: |
no test coverage detected