WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Different log files per channel and flags #164

Open ivptr opened 3 years ago

ivptr commented 3 years ago

It would be nice to be able to define separate log files per channel and flags, similar to Eggdrop: http://www.eggheads.org/support/egghtml/1.6.18/egg-core.html#sect1c

For example:

logfile mco * "logs/eggdrop.log"
logfile jpk #lamest "logs/lamest.log"
NanoSector commented 3 years ago

That's interesting... in theory modules are powerful enough so that one can be written for this purpose, on the other hand integrating a more flexible logging system into the core directly might allow easier separation of not only channel messages but also per-module log files or more separated output if they opt in to this.

ivptr commented 3 years ago

I find this feature very important, because it is very hard to browse log files with bunch of things inside.

Also would like to log 10 channels separately.

Want to use WildPHP to migrate from eggdrop and nice logging is incorporated in the core there.

NanoSector commented 3 years ago

I'm out of time for today and have a busy week next week, but I definitely want to look into this soon.

ivptr commented 3 years ago

Awesome. Also noticed that Eggdrop logs are much more readable: http://layer-acht.org/fai-irc/fai.log.20070727

Anyway, many thanks for the prompt fixes!