dblog.txt needs a size Limit (5mb would be nice)

AniDB Client Feature Requests go here

Moderators: AniDB, AniDB API

Locked
Hanako
Posts: 12
Joined: Fri Feb 03, 2006 11:04 am
Location: Xanadu
Contact:

dblog.txt needs a size Limit (5mb would be nice)

Post by Hanako »

I didn't find any threads addressing this issue so I decided to bring it up here. I just noticed an extremely fragmented 750MB dblog.txt file when doing some spring cleaning.

Would it be possible to limit this file size or disable logging when you don't need it?
Hoerie
Posts: 79
Joined: Sun Aug 07, 2005 12:15 pm
Location: Delft

Post by Hoerie »

Yeah, I agree...mine is only 150mb but still, a huge waste of space if it is only used as a logfile.
Amour
Posts: 640
Joined: Fri Oct 08, 2004 5:19 pm
Location: France

Post by Amour »

Thank you for pointing this out. I just deleted mine, now.
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit »

on ntfs file systems you can compress the files, you will save tons of space that way
suppy
Posts: 151
Joined: Mon Jan 31, 2005 10:37 am
Location: A House of the Azath

Post by suppy »

fahrenheit wrote:on ntfs file systems you can compress the files, you will save tons of space that way
oh lord, please tell me you did not just suggest this >_<
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit »

i did :P

i can give you another good one: ln -sv /dev/null dblog.txt

that would also solve your problem
Hoerie
Posts: 79
Joined: Sun Aug 07, 2005 12:15 pm
Location: Delft

Post by Hoerie »

If the log is only there to take up space, then overwriting it instead of appending would be better, who wants 200 mb of logfile anyway?
Unless of course it is somehow important...
Hanako
Posts: 12
Joined: Fri Feb 03, 2006 11:04 am
Location: Xanadu
Contact:

Post by Hanako »

Logs do come in useful when troubleshooting and sometimes having a record of the last few executions helps in tracking down problems. Thats why I suggested some kind of size limit or an expiration on log dates.

NTFS compression can be useful on archiving and backup drives, but I prefer not to use it because of the performance hit. Its also not usually necessary when you have 3TB of storage space.
Locked