Bug 6233 - Minimal server logging
: Minimal server logging
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.0
: PC All
: -- enhancement (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-26 12:22 UTC by Jim McAtee
Modified: 2011-11-06 23:22 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-26 12:22:26 UTC
I think it's a good compromise to set all logging level to ERROR, exept for one concern.  I think there should be some logging of very basic events such as server startup and shutdown, and perhaps the launching and completion of library scans.  I tried setting the 'server' logging to both INFO and WARN levels.  WARN gives no startup information, and INFO is pretty chatty.  Can a couple of very basic always-on log messages be added?

Maybe something like:

[10:03:47.9281] main::init (108) SqueezeCenter starting up...
[10:03:52.5547] main::init (216) SqueezeCenter startup completed
[12:15:09.4662] xxxxx::xxxxxx (451) Library scan initiated...
[12:33:28.9438] xxxxx::xxxxxx (451) Library scan finished
[15:22:57.0242] main::init (293) SqueezeCenter shutting down
Comment 1 Blackketter Dean 2007-12-27 13:46:04 UTC
Jim: are there specific logged items you want changed?  Or just different log levels?
Comment 2 Jim McAtee 2007-12-27 14:09:32 UTC
Neither, really, unless they're are already being logged, but I don't see them due to my level settings.  I think that a handful of additional higher level events should always be logged.  Very basic stuff:  Server startup.  Server shutdown.  Scan of type xxx launched.  Perhaps within the 'server' logging category or create a new category.
Comment 3 Andy Grundman 2007-12-27 20:58:55 UTC
The vast majority of users don't care about the log file, I disagree that we need any logging by default, other than errors.
Comment 4 Jim McAtee 2007-12-27 21:07:58 UTC
Ok, how about this?  _I_ want to see when the server has started and when the server has shut down, because if you're going to fire up a log in the first place, you want to see when it starts and finishes logging.
Comment 5 Blackketter Dean 2007-12-28 04:09:57 UTC
The whole point of logging is to help diagnose problems that happen after the fact.  Basic system startup and ending messages seem reasonable defaults.  Then any warnings or error logs of out-of-the-ordinary behavior are on top of that.

Comment 6 KDF 2008-01-11 23:11:17 UTC
how about a few simple yet obviously non-fatal $log->fatal messages on init and sigterm.  This way, they show up at default levels, but users who want nothing can still set logger('server') to 'off' to get rid of them.  
Comment 7 Jim McAtee 2008-01-11 23:32:10 UTC
(In reply to comment #6)
> how about a few simple yet obviously non-fatal $log->fatal messages on init and
> sigterm.  This way, they show up at default levels, but users who want nothing
> can still set logger('server') to 'off' to get rid of them.  

That's what I was thinking - that you'd need to make them $log->fatal messages.

I'm unfamiliar with how you can turn off all logging, though, unless you're talking about modifying the prefs file manually.

Comment 8 Alan Young 2011-11-06 23:22:52 UTC
Unassigned bugs cannot have a priority.