class documentation

class LogForwardingConfig: (source)

View In Hierarchy

Configuration for log forwarding from Core.

Configuring this will send logs from Core to the given Python logger. By default, log timestamps are overwritten and internally throttled/buffered for a few milliseconds to prevent overloading Python. This means those log records may have a time in the past and technically may appear out of order with Python-originated log messages by a few milliseconds.

If for some reason lots of logs occur within the buffered time (i.e. thousands), they may be sent earlier. Users are discouraged from using this with TRACE Core logging.

All log records produced have a temporal_log attribute that contains a representation of the Core log. This representation has a fields attribute which has arbitrary extra data from Core. By default a string representation of this extra fields attribute is appended to the message.

Warning

This API is experimental

Class Variable append_log_fields_to_message If true, the default, the extra fields dict is appended to the message.
Class Variable append_target_to_name If true, the default, the target is appended to the name.
Class Variable logger Core logger messages will be sent to this logger.
Class Variable overwrite_log_record_time If true, the default, the log record time is overwritten with the core log time.
Class Variable prepend_target_on_message If true, the default, the target is appended to the name.
Instance Variable relativeCreated Undocumented
Method _on_logs Undocumented
append_log_fields_to_message: bool = (source)

If true, the default, the extra fields dict is appended to the message.

append_target_to_name: bool = (source)

If true, the default, the target is appended to the name.

Core logger messages will be sent to this logger.

overwrite_log_record_time: bool = (source)

If true, the default, the log record time is overwritten with the core log time.

prepend_target_on_message: bool = (source)

If true, the default, the target is appended to the name.

relativeCreated = (source)

Undocumented