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)
| 2151 | root.debug(msg, *args, **kwargs) |
| 2152 | |
| 2153 | def log(level, msg, *args, **kwargs): |
| 2154 | """ |
| 2155 | Log 'msg % args' with the integer severity 'level' on the root logger. If |
| 2156 | the logger has no handlers, call basicConfig() to add a console handler |
| 2157 | with a pre-defined format. |
| 2158 | """ |
| 2159 | if len(root.handlers) == 0: |
| 2160 | basicConfig() |
| 2161 | root.log(level, msg, *args, **kwargs) |
| 2162 | |
| 2163 | def disable(level=CRITICAL): |
| 2164 | """ |
no test coverage detected