Page 1 of 1

How to enable logging (version 1.2.5 and later)

Posted: Thu Jan 05, 2012 12:54 am
by sbooth
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.