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)
| 2228 | root.debug(msg, *args, **kwargs) |
| 2229 | |
| 2230 | def log(level, msg, *args, **kwargs): |
| 2231 | """ |
| 2232 | Log 'msg % args' with the integer severity 'level' on the root logger. If |
| 2233 | the logger has no handlers, call basicConfig() to add a console handler |
| 2234 | with a pre-defined format. |
| 2235 | """ |
| 2236 | if len(root.handlers) == 0: |
| 2237 | basicConfig() |
| 2238 | root.log(level, msg, *args, **kwargs) |
| 2239 | |
| 2240 | def disable(level=CRITICAL): |
| 2241 | """ |
no test coverage detected