This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Weekly Logs

Old posts that have not been replied to for several years.
Locked
O
OpSiS

Weekly Logs

Post by OpSiS »

Hi there!

How can i make weekly logs? I know it's possible. I need to have a log file with one week log, then my eggdrop makes another week log file.. and so on..

Can someone help? :(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This sort of thing would have to be scripted.

First you would setup the bot, to continiously log to one file.

Then, using the EVNT bind, you can track when logs are rotated.

When the logs reach one week old, copy the contents to a seperate file, and clear the contents of the main log.

While this in theroy should work, I am unsure if the log rotation EVNT bind is called, when the logs are set to never rotate. If not, this in theory is a bug, as there should be some mechanism to rotate logs if wanted. If it does, ignore this part :P
O
OpSiS

Post by OpSiS »

Well, since i can't script that i think i can do what i want if i can log to one file continiously and then i delete the file weekly

Is this ok?

And, please, tell me what to do to log continiously and not daily (yes i'm n00b) :lol:

Thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

That information is available in the documentation.

See the tips and tricks file int he docs directory.
Locked