Datetime in logs?

Enrique Arizón e_arizon_benito at
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")
  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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list