<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>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:<br><br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> MAC=$(/sbin/ifconfig | grep "HWaddr" | sed "s/^.*HWaddr //" | sed "s/\ *//g")</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> LOGFILE="/var/log/xorg.${MAC}.$(whoami).log"</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> exec 1>>${LOGFILE} 2>&1</span><br><br>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:<br><br> 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.<br><br> Regards,<br><br>Enrique<br><br><br><br><br></div></div></body></html>