mentat.daemon.component.printer module

Daemon component capable of simple printing of incoming messages to log file with the info severity.

The implementation is based on pyzenkit.zendaemon.ZenDaemonComponent.

class mentat.daemon.component.printer.PrinterDaemonComponent(**kwargs)[source]

Bases: ZenDaemonComponent

Implementation of ZenDaemonComponent printing messages to log file.

EVENT_MSG_PROCESS = 'message_process'
STATS_CNT_PRINTED = 'cnt_printed'
cbk_event_message_process(daemon, args)[source]

Print the message contents into the log.

get_events()[source]

Get the list of event names and their appropriate callback handlers.