Bug 6203 - Add dates to log entries
: Add dates to log entries
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.0
: PC All
: P2 enhancement (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-20 19:06 UTC by Jim McAtee
Modified: 2008-12-18 11:12 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2007-11-20 19:06:28 UTC
I notice this is easily done by modifying the log entry patterns in log.conf.  Makes troubleshooting a lot easier when you're not confusing something that happened a day or two ago with problems you may have experienced today.  Which is surprisingly easy to do when the logs are fairly sparse (becuase either the server is running well or logging levels are low.)

I changed the timestamp formats from:

[%d{HH:mm:ss.SSSS}]

to

[%d{yyyy-MM-dd HH:mm:ss.SSSS}]

But [%d{yy-MM-dd HH:mm:ss.SSSS}] also works.
Comment 1 KDF 2007-11-20 23:46:05 UTC
This won't help existing conf files, but for 6.5 -> 7.0 upgrades, or simply removing log.conf gets the new config.

Index: server/Slim/Utils/Log.pm
===================================================================
--- server/Slim/Utils/Log.pm    (revision 14887)
+++ server/Slim/Utils/Log.pm    (working copy)
@@ -854,8 +854,8 @@
 
        if ($::LogTimestamp) {
 
-               $pattern    = '[%d{HH:mm:ss.SSSS}] %M (%L) %m%n';
-               $rawpattern = '[%d{HH:mm:ss.SSSS}] %m%n';
+               $pattern    = '[%d{yy-MM-dd HH:mm:ss.SSSS}] %M (%L) %m%n';
+               $rawpattern = '[%d{yy-MM-dd HH:mm:ss.SSSS}] %m%n';
 
        } else {
 
Comment 2 KDF 2007-12-13 22:57:54 UTC
fixed at change 15288.  we needed the date. ok, *I* needed the date, so that's all the matters really.
Comment 3 Chris Owens 2008-03-07 09:05:17 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.