Bugzilla – Bug 6203
Add dates to log entries
Last modified: 2008-12-18 11:12:53 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.
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 {
fixed at change 15288. we needed the date. ok, *I* needed the date, so that's all the matters really.
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.