12th October, 2008

Simple trick if you are dealing with lots of log files   

Posted in programming, random | by evilbitz |



Well, it’s all about the numbering :-)

You start with 1.txt and ends up with 1756.txt, too many logs and they always seems unorganized on your disk, so you are arranging the file by date but this may also be a problem with asyncronous writing to log files. And either way, it still it look bad when you arrange the files by date.

So do what I do, start numbering your files from 10000, this way they’ll be arganized by their name properly.

This is silly I know :-)



There is currently one response to “Simple trick if you are dealing with lots of log files”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On December 31st, 2008, Sylvester said:

    I am using order by date with this format
    YYYYMMDD.txt

Leave a Reply

You must be logged in to post a comment.

Top »
"If you can't join them, beat them!"
Search Evilbitz: