Log 'msg % args' with the integer severity 'level' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.
(level, msg, *args, **kwargs)
| 2218 | root.debug(msg, *args, **kwargs) |
| 2219 | |
| 2220 | def log(level, msg, *args, **kwargs): |
| 2221 | """ |
| 2222 | Log 'msg % args' with the integer severity 'level' on the root logger. If |
| 2223 | the logger has no handlers, call basicConfig() to add a console handler |
| 2224 | with a pre-defined format. |
| 2225 | """ |
| 2226 | if len(root.handlers) == 0: |
| 2227 | basicConfig() |
| 2228 | root.log(level, msg, *args, **kwargs) |
| 2229 | |
| 2230 | def disable(level=CRITICAL): |
| 2231 | """ |
nothing calls this directly
no test coverage detected