Log a message with severity 'WARNING' 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)
| 26 | |
| 27 | |
| 28 | def warning(msg, *args, **kwargs): |
| 29 | """ |
| 30 | Log a message with severity 'WARNING' on the root logger. If the logger has |
| 31 | no handlers, call basicConfig() to add a console handler with a pre-defined |
| 32 | format. |
| 33 | """ |
| 34 | logging.warning(msg, *args, **kwargs) |
| 35 | |
| 36 | |
| 37 | def warn(msg, *args, **kwargs): |