Re: kernel log messages using wrong timezone

From: Andreas Dilger (adilger@turbolabs.com)
Date: Fri Jan 04 2002 - 16:57:09 EST


On Jan 04, 2002 16:12 -0500, Chris Friesen wrote:
> Andreas Dilger wrote:
> > On Jan 04, 2002 15:14 -0500, Chris Friesen wrote:
> > > How does the kernel figure out how to timestamp the log output?
> > > The reason I'm asking is that we have a system that has /etc/localtime
> > > pointing to the Americas/Montreal timezone, but the log output from the
> > > kernel appears to be UTC.
> >
> > The kernel doesn't timestamp the logs, AFAIK. That is done by syslog when
> > it writes the logs to disk. If you check "dmesg" output - no timestamps.
>
> Hmm...good point. However, I should clarify that userspace logs are being
> corrected for timezone, but kernel logs are not. For userspace apps the
> timestamping is done in the glibc syslog() call, so now I need to figure out
> where it's done for the kernel.

Well, on my system I have "syslogd" and "klogd" running. Kernel logs are
extracted from the kernel ringbuffer by klogd and passed to syslog, so that
would be the place to look.

Cheers, Andreas

--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:26 EST