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)
| 2159 | return Logger.manager.getLogger(name) |
| 2160 | |
| 2161 | def critical(msg, *args, **kwargs): |
| 2162 | """ |
| 2163 | Log a message with severity 'CRITICAL' on the root logger. If the logger |
| 2164 | has no handlers, call basicConfig() to add a console handler with a |
| 2165 | pre-defined format. |
| 2166 | """ |
| 2167 | if len(root.handlers) == 0: |
| 2168 | basicConfig() |
| 2169 | root.critical(msg, *args, **kwargs) |
| 2170 | |
| 2171 | def fatal(msg, *args, **kwargs): |
| 2172 | """ |
no test coverage detected
searching dependent graphs…