Watch 'em logfiles

It’s always handy to keep a logfile around – you never know when you wanna need one! So just in case … you should keep a spare!

I was just so pissed of by my dev-machine, because it ran out of disk-space – and then it hit me! There was this one app, it’s not even written by myself (which makes it even worse) and it’s write two logfiles (this doesn’t makes sense to me in the first place). One xml and one text based. But also for a released software to be shipped with a log level of debug and the (and this by far the most serious issue): log4net is set to <appendToFile value="true" />. Ok you might have spot it: after two weeks of usae the logfile was consuming 3,5 GB of disk-space!!

Leave a Comment.