pyfli.log_save.logging#
Small logging helpers for PyFLI.
Functions
|
Run the format message routine. |
|
Run the log routine. |
|
Configure PyFLI logging without overriding user logging handlers. |
|
Run the critical routine. |
|
Run the debug routine. |
|
Run the error routine. |
|
Run the exception routine. |
|
Format an elapsed time in seconds, minutes, or hours. |
|
Run the info routine. |
|
Run the log routine. |
|
Run the warn once routine. |
|
Run the warning routine. |
- configure_logging(level=_logging.INFO)[source]#
Configure PyFLI logging without overriding user logging handlers.
- critical(msg, *args, **kwargs)[source]#
Run the critical routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform critical.
- Return type:
- debug(msg, *args, **kwargs)[source]#
Run the debug routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform debug.
- Return type:
- error(msg, *args, **kwargs)[source]#
Run the error routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform error.
- Return type:
- exception(msg, *args, **kwargs)[source]#
Run the exception routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform exception.
- Return type:
- info(msg, *args, **kwargs)[source]#
Run the info routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform info.
- Return type:
- log(level, msg, *args, **kwargs)[source]#
Run the log routine.
- Parameters:
level (
int) – Logging severity level.msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform log.
- Return type:
- warning(msg, *args, **kwargs)[source]#
Run the warning routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform warning.
- Return type:
- warn_once(msg, *args, **kwargs)[source]#
Run the warn once routine.
- Parameters:
msg (
Any) – Message text emitted through the PyFLI logger.*args (
Any) – Additional positional values accepted by the routine.**kwargs (
Any) – Additional keyword options forwarded to the underlying implementation.
- Returns:
No object is returned; the function perform warn once.
- Return type: