ae.app_log
runtime logging helpers
ErrorMsgMixin: a mixin class that extends any class with a sophisticated error message handling and logging.
Classes
mixin class providing sophisticated error message handling and logging. |
- class ErrorMsgMixin[source]
Bases:
objectmixin class providing sophisticated error message handling and logging.
- error_sep = '\n\n'
error messages separator (reading the
error_messageproperty)
- main_app = None
main
ae.core.AppBaseinstance
- __init__()[source]
try to initialize and use app environment logging output methods from the main app instance.
- po(*args, sep=' ', end='\n', file=None, flush=False)
default print functions for normal/debug/verbose console output
- dpo(*args, sep=' ', end='\n', file=None, flush=False)
default print functions for normal/debug/verbose console output
- vpo(*args, sep=' ', end='\n', file=None, flush=False)
default print functions for normal/debug/verbose console output
- property error_message: str
error message string if an error occurred or an empty string if not.
- Getter:
return the accumulated error message of the recently occurred error(s).
- Setter:
any assigned error message will be accumulated/added to recent error messages. assign an empty string to reset all the previously accumulated error messages.