← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 285787] Re: x.org logging doesn't put timestamp on the log lines

 

Last week I wrote a patch to log messages with timestamps in Xorg logs:

   https://bugs.freedesktop.org/show_bug.cgi?id=26180

Differences with the Ubuntu patch:
 - patch LogVWrite() to write the timestamp before any kind of message
 - detect the new line character to avoid multiple timestamps per line: avoid " ... [ 0.019968] (WW) warning, [ 0.019986] (EE) error, [ 0.020003] (NI) not implemented, [ 0.020020] (??) unknown ..."
 - use time()+localtime()+strftime("%F %T ") to get timestamp like "2010-01-23 03:15:10", instead of the number of seconds (and microseconds) since Xorg started (eg. "[ 0.019917] ")


** Bug watch added: freedesktop.org Bugzilla #26180
   https://bugs.freedesktop.org/show_bug.cgi?id=26180

-- 
x.org logging doesn't put timestamp on the log lines
https://bugs.launchpad.net/bugs/285787
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg-server in ubuntu.