How to enable logging (version 1.2.5 and later)

Discuss Decibel, a high quality audio player.
Locked
User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

How to enable logging (version 1.2.5 and later)

Post by sbooth » Thu Jan 05, 2012 12:54 am

In Decibel versions 1.2.5 and later, logging is controlled via hidden preferences.

The two hidden preferences that control logging are EnableLogging and LogLevel.
  • EnableLogging is a boolean specifying whether or not logging should be enabled.
  • LogLevel is an integer from 0 to 7 controlling the verbosity of logged messages, with larger number indicating more detailed logging.
You can set them on the command line in Terminal. For example,

Code: Select all

$ defaults write org.sbooth.Decibel EnableLogging -bool YES
$ defaults write org.sbooth.Decibel LogLevel -int 5
will enable logging and output messages of NOTICE importance and higher.

The available log levels are:

Code: Select all

0   EMERG
1   ALERT
2   CRIT
3   ERR
4   WARNING
5   NOTICE
6   INFO
7   DEBUG
The log file will be saved to ~/Library/Logs/Decibel.log and will be overwritten at each launch.

Locked

Who is online

Users browsing this forum: No registered users and 2 guests