Datetime in logs?

Enrique Arizón e_arizon_benito at yahoo.com
Fri Aug 15 13:09:37 PDT 2008


I have a farm of hosts and I try to log as much as possible to /var/log. In /usr/bin/startx I added next lines:

  MAC=$(/sbin/ifconfig | grep "HWaddr" | sed "s/^.*HWaddr //" | sed "s/\ *//g")
  LOGFILE="/var/log/xorg.${MAC}.$(whoami).log"
  exec  1>>${LOGFILE} 2>&1

so that every host log STDOUT/STDERR to a common NFS log dir with its own mac. It works fine but the problem comes now:

 While trying to diagnose problems Xorg doesn't log the date/hour so is quite difficult to relate Xorg log to other system events (cron tasks, user reboots, watchdogs,...).  I don't know if there is some way to switch datetime logging on.

 Regards,

Enrique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20080815/40c7fddf/attachment.html>


More information about the xorg mailing list