|
PALM-meteo
|
Functions | |
| def | die (s, *args, **kwargs) |
| def | warn (s, *args, **kwargs) |
| def | log_on (s, *args, **kwargs) |
| def | log_off (s, *args, **kwargs) |
| def | configure_log (cfg) |
Variables | |
| level_on | |
| log_output = sys.stdout.write | |
| error_output = sys.stderr.write | |
| def | log = log_on |
| def | verbose = log_off |
| def palmmeteo.logging.configure_log | ( | cfg | ) |
| def palmmeteo.logging.die | ( | s, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Write message to error output and exit with status 1.
| def palmmeteo.logging.log_off | ( | s, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Do nothing (logging is disabled).
| def palmmeteo.logging.log_on | ( | s, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Write logging or debugging message to standard output (logging is enabled).
| def palmmeteo.logging.warn | ( | s, | |
| * | args, | ||
| ** | kwargs | ||
| ) |
Write message to error output.
| palmmeteo.logging.error_output = sys.stderr.write |
| palmmeteo.logging.level_on |
| def palmmeteo.logging.log = log_on |
| palmmeteo.logging.log_output = sys.stdout.write |
| def palmmeteo.logging.verbose = log_off |