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

AniDB Client Feature Requests go here

Moderators: AniDB, AniDB API

Locked
User avatar
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 » Sat Apr 14, 2007 3:06 pm

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 » Sat Apr 14, 2007 6:23 pm

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 » Sat Apr 14, 2007 10:59 pm

Thank you for pointing this out. I just deleted mine, now.

User avatar
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit » Sun Apr 15, 2007 1:28 pm

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 » Sun Apr 15, 2007 7:33 pm

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 >_<

User avatar
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit » Sun Apr 15, 2007 9:45 pm

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 » Sun Apr 15, 2007 11:37 pm

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...

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

Post by Hanako » Mon Apr 16, 2007 3:35 am

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