org_heigl / phergie-logger-plugin
A plugin to log IRC-chats
1.1.1
2016-06-02 05:54 UTC
Requires
This package is auto-updated.
Last update: 2024-10-23 09:53:21 UTC
README
This is a plugin for phergie.
It can be used to log an IRC-Channel to disk using a PSR3-Logger.
Usage:
- require the logger-plugin: `
composer require org_heigl/phergie-logger-plugin
- Create a LoggerOptions-Instance with a Parser
$config = new LoggerConfiguration(new \Phergie\Irc\Parser());
- Create PSR-3 compatible logger for the channels to be logged:
$logger = new \Monolog/Logger('name');
- Add the logger as logger for a channel to the Configuration:
- add the plugin to the plugins-array:
new LoggerPLugin($config);