Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom diffusers module.
(name: Optional[str] = None)
| 111 | |
| 112 | |
| 113 | def get_logger(name: Optional[str] = None) -> logging.Logger: |
| 114 | """ |
| 115 | Return a logger with the specified name. |
| 116 | |
| 117 | This function is not supposed to be directly accessed unless you are writing a custom diffusers module. |
| 118 | """ |
| 119 | |
| 120 | if name is None: |
| 121 | name = _get_library_name() |
| 122 | |
| 123 | _configure_library_root_logger() |
| 124 | return logging.getLogger(name) |
| 125 | |
| 126 | |
| 127 | def get_verbosity() -> int: |
no test coverage detected