Well, I can do that fine. Because I can't get the year from the log name, I am just working from the Date Created field instead (im doing this on a Windows box). This means that I have to assume the date the file was created, was when srcds created it ;)
If valve would simply make the log naming convention something simple like: srcds<yyyy><mm><dd> Or: Srcds<yyyy><dd><mm> Either one would be good, and would allow so much more control over the archiving process. I'm sure other larger game server providers are having the same gripe? If I had to manage hundreds of servers with the current log format on each, I would be pretty pissed. Regards, Adam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graham M. Sent: Friday, 24 February 2006 11:14 AM To: hlds@list.valvesoftware.com Subject: Re: [hlds] Log File Formats & Archiving Process Adam Sando wrote: >This is a multi-part message in MIME format. >-- >[ Picked text/plain from multipart/alternative ] Hi guys, > >I'm in the process of writing some scripts to manage my log file >archive process, and have a couple of questions some of you may know >the answers >to: >1. Why has Valve decided it is a great idea to have the log naming >convention of "L<mm><dd><nnn>.log" ?? >2. Is there an automated tool already available that can archive logs >to directories based on either day or month? > >If the answer to #2 is no, then that's cool as I've already written the >bzip2 and move process, however have not had it move based on date yet. >If the answer is yes, this just makes my life easier ;) > >Any help would be appreciated. > >Regards, >Adam. > >-- > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, please visit: >http://list.valvesoftware.com/mailman/listinfo/hlds > > > Its quite easy to trim the filename so you can find out the date and month, ill have a look back at something ive done before when im more awake if you like. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds This e-mail has been scanned for viruses by Hostworks Message Scanning Services - powered by MessageLabs. For further information contact Hostworks on 1300 30 4848. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds