org_heigl / phergie-logger-plugin
A plugin to log IRC-chats
Package info
github.com/heiglandreas/phergie-logger-plugin
pkg:composer/org_heigl/phergie-logger-plugin
1.1.1
2016-06-02 05:54 UTC
Requires
This package is auto-updated.
Last update: 2026-03-23 13:04:43 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);