Log a message with severity 'ERROR' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.
(msg, *args, **kwargs)
| 2175 | critical(msg, *args, **kwargs) |
| 2176 | |
| 2177 | def error(msg, *args, **kwargs): |
| 2178 | """ |
| 2179 | Log a message with severity 'ERROR' on the root logger. If the logger has |
| 2180 | no handlers, call basicConfig() to add a console handler with a pre-defined |
| 2181 | format. |
| 2182 | """ |
| 2183 | if len(root.handlers) == 0: |
| 2184 | basicConfig() |
| 2185 | root.error(msg, *args, **kwargs) |
| 2186 | |
| 2187 | def exception(msg, *args, exc_info=True, **kwargs): |
| 2188 | """ |
no test coverage detected
searching dependent graphs…