ae.app_log

runtime logging helpers

  • ErrorMsgMixin: a mixin class that extends any class with a sophisticated error message handling and logging.

Classes

ErrorMsgMixin()

mixin class providing sophisticated error message handling and logging.

class ErrorMsgMixin[source]

Bases: object

mixin class providing sophisticated error message handling and logging.

error_sep = '\n\n'

error messages separator (reading the error_message property)

main_app = None

main ae.core.AppBase instance

__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.