The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: is syslogd logging locale independent?
linkmanager
Newbie
Rank: 1



UID 235
Digest Posts 0
Credits 0
Posts 38
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:28 AM  Profile | P.M. 
is syslogd logging locale independent?



is syslogd logging locale independent?



just wanna know whether syslogd logs messages in a locale-independent fashion.


i want to read the date/time format from log files.
normally the date/time is of the form jan 23 04:11:30.
can this date/time information found in log files be different for different locales??


Top
bokevoll
Newbie
Rank: 1



UID 74
Digest Posts 0
Credits 0
Posts 41
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:28 AM  Profile | P.M. 
is logging locale independent?



just wanna know whether syslogd logs messages in a locale-independent fashion.

i want to read the date/time format from log files.
normally the date/time is of the form jan 23 04:11:30.
can this date/time information found in log files be different for different locales?
Top
amitpatel_3001
Newbie
Rank: 1



UID 52
Digest Posts 0
Credits 0
Posts 32
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:28 AM  Profile | P.M. 
if your version of syslogd calls any of: localtime, mktime, asctime, ctime then yes.
all of these call tzset which invokes locale. by locale i assume you mean timezone changes.

once started, syslogd will use the same timezone setting as long as it is up and running. the only thing that could cause a problem is how syslogd gets started.
if it doesn't see your system's equivalent of a tz variable setting during process creation then each os has it's own response to setting a default behavior for a missing "tz". example: minus tz, hpux uses est5edt4
Top
 

 

All times are GMT, the time now is Mar 12, 2010 07:43 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005393 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP