org_heigl / phergie-logger-plugin
A plugin to log IRC-chats
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/org_heigl/phergie-logger-plugin
Requires
This package is auto-updated.
Last update: 2025-10-23 11:58:06 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);