[Bug?]Logger->Keep maximum of X files

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

[Bug?]Logger->Keep maximum of X files

Post by *m^2 »

I'm not sure if it should be called a bug, but this option doesn't behave the way I wanted it to and I miss some files this way. :(
How does it work? Creates X files, then stops logging. No warning, nothing.
When I set it, I thought that it will automatically delete the oldest ones, not turn logging off. :(
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

In my case it works like you (and me) expect. What options are used in addition? In my case I use a fixed path (i.e. C:\TEMP instead of %temp% - maybe %temp% isn't set like your expectations?) and "Every day after midnight".
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Log file: %COMMANDER_PATH%\..\Logs\TC.log
Logging all events.
Every day after midnight.
100 copies.

2 details: Actually TC created 101 files. TC.log + 100 TC.date.log. Then didn't delete / rename TC.log and stopped logging at all.
I'm pretty sure access rights wasn't an issue.
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

My options
Log file: C:\TEMP\totalcmd.log
Logging all events except "File system plugins"
Every day after midnight.
Only 10 copies.

Maybe playing with the differences between your and my options will be dectected a cause?
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Yes, but it will take some time ;)
I'll try to limit it to 1 copy, I don't want to play with my system time. I already have to many events in another logs that are supposed to be from 2003 ;)
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2m^2
I think it is related to this

if not, what do you mean by Creates X files
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Yep, it seems that's the problem, thanks. When I moved the TC.date.logs from the logs folder, TC renamed TC.log to TC.20071219.log. And there was a log with the same name moved..and I'm sure I didn't make it manually.
The moved log is pretty short..

Code: Select all

2007-12-19 11:21:09: Program start (1/M)
2007-12-19 11:35:49: Delete: E:\projects\ForceDel\aa
Notice that program end is not there. Crash?
Let's take a look into the second one..

Code: Select all

2003-01-01 00:03:33: Program start (1/M)
2007-12-19 20:36:01: NewFolder: D:\TC\Tools\Media\VIDEO\RealAlternative\Media Player Classic\Codecs\
(...)
Started in 2003. :? So it was probably a crash with BIOS reset. Date changed, so TC renamed the "old" ( future? ;) ) TC.log.
After starting TC I adjusted date. Why didn't TC rename the 2003 log? (bug?)
Anyway, when the day passed, it couldn't rename TC.log->TC.20071219.log because it was there already.

I suggest changing this behaviour. Maybe TC.20071219_2.log?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Checked:
TC doesn't rename if the name is in use, but keeps logging and does the renaming a day later.
I can call it fixed. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks for checking it!
Author of Total Commander
https://www.ghisler.com
Post Reply