You can also override the method receive() that takes a LogEntry
object and calls self.log(log_entry, format_string, arg1, arg2, ...)
with appropriate data.
copy(...)
Dummy method that returns an empty error log.
log(self,
log_entry,
message,
*args)
Called by the .receive() method to log a _LogEntry instance to
the Python logging system. This handles the error level
mapping.
receive(self,
log_entry)
Receive a _LogEntry instance from the logging system. Calls
the .log() method with appropriate parameters:
Called by the .receive() method to log a _LogEntry instance to
the Python logging system. This handles the error level
mapping.
In the default implementation, the message argument
receives a complete log line, and there are no further
args. To change the message format, it is best to
override the .receive() method instead of this one.
receive(self,
log_entry)
Receive a _LogEntry instance from the logging system. Calls
the .log() method with appropriate parameters:
self.log(log_entry, repr(log_entry))
You can override this method to provide your own log output
format.