LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > leading zeros for hourly access logs

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2007, 11:59 PM
jrmarino jrmarino is offline
Senior Member
 
Join Date: Apr 2007
Posts: 114
Default leading zeros for hourly access logs

I know this is a small thing, but can you use leading zeros for the hour part of the filename for access logs? Here's a recent example of mine:

Code:
access.log.2007_08_15.2
access.log.2007_08_15.20
access.log.2007_08_15.21
access.log.2007_08_15.22
access.log.2007_08_15.23
access.log.2007_08_15.3
access.log.2007_08_15.4
access.log.2007_08_15.5
access.log.2007_08_15.6

I would like the filenames to be this instead:
Code:
access.log.2007_08_15.02
access.log.2007_08_15.03
access.log.2007_08_15.04
access.log.2007_08_15.05
access.log.2007_08_15.06
...
access.log.2007_08_15.20
access.log.2007_08_15.21
access.log.2007_08_15.22
access.log.2007_08_15.23
The reason should be obvious. The files are not sorted in order if you don't use leading zeros for the hour. Note that you do correctly use leading zeros for the month and day, so if nothing else: be consistent.

Thanks for listening.
Reply With Quote
  #2  
Old 08-16-2007, 06:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
sure, will do.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:16 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.