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.

2 logs per one day problem.

Old posts that have not been replied to for several years.
Locked
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

2 logs per one day problem.

Post by dr_Fell »

I have egg on my own machine that's powered off for night. I believe that eggdrop switches logs at 0 am I believe - it creates log channelname.log.25.Aug.2004. When I turn my computer on at themorning egg renames that log to channelname.log.25.sie.2004 (sierpien is polish word for august) and starts new log channelname.log.25.Aug.2004.

Becouse after short poweroff egg continues logging to an old log (channelname.log.25.Aug.2004.) I think that's something with config is messed up.

I thought it's the matter of logs exchanging... but egg changes logs at 0 am. so I can't say why after morning power on it can't just log into log he started some hours before.

I tried google but eggdrop log and rename are very popular words.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

There is no substitute for reading your conf file. :wink: So tell me, what are your current settings for these conf file variables?

Code: Select all

set max-logs
set max-logsize
set keep-all-logs
set switch-logfiles-at
Mind you, I know about half of nothin' about windrops, 'cos eggies are superior, of course :wink: But it kinda sounds like you have set keep-all-logs set to 1, or maybe too small of a number in the set max-logsize variable......
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

I didn't say I have Win as my desktop :)

Code: Select all

set max-logsize 600
set max-logs 5
set keep-all-logs 1
set switch-logfiles-at wasn't set (now I'm trying 400, trying to mage egg switch logs when it's offline, but I'd really want day ends at 0 am).

Like You said set keep-all-logs was on but what's wrong with that ?

btw none of the logs was bigger than 350 kB.
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

strange... although set switch-logfiles-at is set to 400, when I had rebooted my machine at about 0:50 eggdrop makes the same thing. changes "Aug" to "sie" in log name and started new log with "Aug" :/
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

dr_Fell wrote:set switch-logfiles-at wasn't set (now I'm trying 400, trying to mage egg switch logs when it's offline, but I'd really want day ends at 0 am).

Like You said set keep-all-logs was on but what's wrong with that ?
The answer lies in your .conf file. :mrgreen:

Code: Select all

# This is the maximum size of your logfiles. Set it to 0 to disable.
# This value is in kilobytes, so '550' would mean cycle logs when it
# reaches the size of 550 kilobytes. Note that this only works if you
# have keep-all-logs 0 (OFF).
set max-logsize 0

# This could be good if you have had problem with the logfile filling
# your quota/hard disk or if you log +p and publish it to the web and
# need more up-to-date info. Note that this setting might increase the
# CPU usage of your bot (on the other hand it will decrease your mem usage).
set quick-logs 0

# This creates a logfile named eggdrop.log containing private msgs/ctcps,
# commands, errors, and misc. info from any channel.
logfile mco * "logs/eggdrop.log"

# This creates a logfile named lamest.log containing joins, parts,
# netsplits, kicks, bans, mode changes, and public chat on the
# channel #lamest.
logfile jpk #lamest "logs/lamest.log"

# Use this feature to timestamp entries in the log file.
set log-time 1

# If you want to keep your logfiles forever, turn this setting on. All
# logfiles will get suffix ".[day, 2 digits][month, 3 letters][year, 4 digits]".
# Note that your quota/hard-disk might be filled by this, so check your logfiles
# often and download them.
set keep-all-logs 0

# If keep-all-logs is 1, this setting will define the suffix of the logfiles.
# The default will result in a suffix like "04May2000". "%Y%m%d" will produce
# the often used yyyymmdd format. Read the strftime manpages for more options.
# NOTE: On systems which don't support strftime, the default format will
# be used _always_.
set logfile-suffix ".%d%b%Y"

# You can specify when Eggdrop should switch logfiles and start fresh. You
# must use military time for this setting. 300 is the default, and describes
# 03:00 (AM).
set switch-logfiles-at 300
You might wish to try turning set keep-all-logs off, setting an appropriate logfile-suffix, ect. Read through your ~/doc folder, there is more documentation written about everything there.
:mrgreen: Good Luck! :mrgreen:
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

Hmm, I've read that some times - according to that when I change set keep-all-logs to 0 - egg will be changing logs when max logsize will be reached, and i want it to change logs everyday, at 0:00. Moreover, with that setting off, set logfile-suffix won't work anymore (and I want it working).

One thing that I realized, reading that again, was that I can change suffix from %d%b%Y to for example .%Y.%m.%d - and now it's like "2004.09.01" - maybe that'll solve my problem - wonder to what egg can change THIS suffiks :>
Locked