Eggheads: About logging in Eggdrop

Dariusz Kulinski takeda at eggheads.w.pl
Tue Apr 27 09:55:22 CST 2004


Hello Ronny,

Monday, April 26, 2004, 9:56:02 AM, you wrote:

> 18:29:17 +<ting> I would like to see eggdrop with the
> possibillity to log for a week or a month instead of just a day,
> with .yesterday.log being .lastweek.log or .lastmonth.log with a
> simple set log-by [day|week|month] even year?

> Could anyone patch this? So that I can have it in my config, that
> the bot stores the log for a whole week before doing;

> <dcc chat with bot>
> 00:00:00 <bot> [00:00] Switching logfiles...
> </dcc chat with bot>

> With a config that would be something like this:

> set max-logs 5
> set max-logsize 0
> set quick-logs 0
> logfile mco * "logs/eggdrop.log"
> logfile mco * "logs/eggdrop.log"
> logfile jpk #lamest "logs/lamest.log"
> set log-time 1
> set keep-all-logs 0
> set logfile-suffix ".%d%b%Y"

> # Decides how often the log should be cycled.
> #  0 = every day (default, old behaviour) with suffix .yesterday
> #  1 = every week with suffix .lastweek
> #  2 = every month with suffix .lastmonth
> #  3 = every year (fairly large log file, not recommanded) with suffix .lastyear
> set log-by 0 <-- This is what I would like as "1" or "2" (mostly for PISG :p)

> set switch-logfiles-at 300
> set quiet-save 0


> What do you think?

I think that because the way how is it done currently it would be very
difficult to do it, much simplier would be to write script that each
day would do thise tasks (join files etc)

-- 
Best regards,
 Dariusz                            mailto:takeda at eggheads.w.pl
CCNA, SCSA, SCNA, LPIC, MCP certified
http://eggdrop.takeda.tk - eggdrop help forum




More information about the Eggheads mailing list