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)
| 2098 | critical(msg, *args, **kwargs) |
| 2099 | |
| 2100 | def error(msg, *args, **kwargs): |
| 2101 | """ |
| 2102 | Log a message with severity 'ERROR' on the root logger. If the logger has |
| 2103 | no handlers, call basicConfig() to add a console handler with a pre-defined |
| 2104 | format. |
| 2105 | """ |
| 2106 | if len(root.handlers) == 0: |
| 2107 | basicConfig() |
| 2108 | root.error(msg, *args, **kwargs) |
| 2109 | |
| 2110 | def exception(msg, *args, exc_info=True, **kwargs): |
| 2111 | """ |
no test coverage detected