engforge.reporting.Reporter
- class Reporter(name='reporter')[source]
Bases:
LoggingMixinA mixin intended
Method generated by attrs for class Reporter.
Methods
Overwrite this to modify logging fields
change_all_log_lvla test to see if the reporter should be used
A routine to communicate to the root of the server network that there is an issue
Writes at a low level to the log file.
Writes to log as a error
extract_messageThis acts as the interface for logging.Filter Don't overwrite this, use add_fields instead.
Writes to log but with info category, these are important typically and inform about progress of process in general
We only want std logging to start
converts to color and string via the termcolor library :type message:
str:param message: a string convertable entity :type color: :param color: a color in [grey,red,green,yellow,blue,magenta,cyan,white]Writes to log.
reset log
resets log on all internal instance LoggingMixins
slack_notificationget all reporters of this type
uploadWrites to log as a warning
Attributes
nameidentitylog_fmtlog_levellog_onloggerslack_webhook_url- Parameters:
name (str)
- add_fields(record)
Overwrite this to modify logging fields
- critical(*args)
A routine to communicate to the root of the server network that there is an issue
- debug(*args)
Writes at a low level to the log file… usually this should be detailed messages about what exactly is going on
- error(error, msg='')
Writes to log as a error
- filter(record)
This acts as the interface for logging.Filter Don’t overwrite this, use add_fields instead.
- info(*args)
Writes to log but with info category, these are important typically and inform about progress of process in general
- installSTDLogger()
We only want std logging to start
- message_with_identiy(message, color=None)
converts to color and string via the termcolor library :type message:
str:param message: a string convertable entity :type color: :param color: a color in [grey,red,green,yellow,blue,magenta,cyan,white]- Parameters:
message (str)
- msg(*args, lvl=5)
Writes to log… this should be for raw data or something… least priorty
- resetLog()
reset log
- resetSystemLogs(reseted=None)
resets log on all internal instance LoggingMixins
- warning(*args)
Writes to log as a warning