shellbot.updaters.file module¶
-
class
shellbot.updaters.file.
FileUpdater
(engine=None, **kwargs)[source]¶ Bases:
shellbot.updaters.base.Updater
Writes inbound events to a file
This updater serializes events and write JSON records to a flat file.
An event may be a Message, a Join or Leave notification, or any other Event.
Updaters expose a filtering function that can be connected to the inbound flow of events handled by the Listener.
Example:
updater = FileUpdater(path='/var/log/my_app.log') listener = Listener(filter=updater.filter)