2017 © Pedro Peláez
 

library phergie-logger-plugin

A plugin to log IRC-chats

image

org_heigl/phergie-logger-plugin

A plugin to log IRC-chats

  • Thursday, June 2, 2016
  • by heiglandreas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

phergie-logger-plugin

This is a plugin for phergie., (*1)

It can be used to log an IRC-Channel to disk using a PSR3-Logger., (*2)

Usage:

  1. require the logger-plugin: ` composer require org_heigl/phergie-logger-plugin
  2. Create a LoggerOptions-Instance with a Parser $config = new LoggerConfiguration(new \Phergie\Irc\Parser());
  3. Create PSR-3 compatible logger for the channels to be logged: $logger = new \Monolog/Logger('name');
  4. Add the logger as logger for a channel to the Configuration: ```$config->addLogger($logger, '#channelname');
  5. add the plugin to the plugins-array: new LoggerPLugin($config);

The Versions