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)
| 2149 | return Logger.manager.getLogger(name) |
| 2150 | |
| 2151 | def critical(msg, *args, **kwargs): |
| 2152 | """ |
| 2153 | Log a message with severity 'CRITICAL' on the root logger. If the logger |
| 2154 | has no handlers, call basicConfig() to add a console handler with a |
| 2155 | pre-defined format. |
| 2156 | """ |
| 2157 | if len(root.handlers) == 0: |
| 2158 | basicConfig() |
| 2159 | root.critical(msg, *args, **kwargs) |
| 2160 | |
| 2161 | def fatal(msg, *args, **kwargs): |
| 2162 | """ |
no test coverage detected