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)
| 2165 | critical(msg, *args, **kwargs) |
| 2166 | |
| 2167 | def error(msg, *args, **kwargs): |
| 2168 | """ |
| 2169 | Log a message with severity 'ERROR' on the root logger. If the logger has |
| 2170 | no handlers, call basicConfig() to add a console handler with a pre-defined |
| 2171 | format. |
| 2172 | """ |
| 2173 | if len(root.handlers) == 0: |
| 2174 | basicConfig() |
| 2175 | root.error(msg, *args, **kwargs) |
| 2176 | |
| 2177 | def exception(msg, *args, exc_info=True, **kwargs): |
| 2178 | """ |
no test coverage detected