Log a message with severity 'CRITICAL' 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)
| 2082 | return Logger.manager.getLogger(name) |
| 2083 | |
| 2084 | def critical(msg, *args, **kwargs): |
| 2085 | """ |
| 2086 | Log a message with severity 'CRITICAL' on the root logger. If the logger |
| 2087 | has no handlers, call basicConfig() to add a console handler with a |
| 2088 | pre-defined format. |
| 2089 | """ |
| 2090 | if len(root.handlers) == 0: |
| 2091 | basicConfig() |
| 2092 | root.critical(msg, *args, **kwargs) |
| 2093 | |
| 2094 | def fatal(msg, *args, **kwargs): |
| 2095 | """ |
no test coverage detected