|
The code examples in this API assume:
include Log4r
The default log levels and their rankings are:
DEBUG < INFO < WARN < ERROR < FATAL
Ranks imply the importance of a logging event. Think of it this way: the lower the rank, the more noisy the level and the less likely we'd want to see that info in a production release.
You can customize the number and names of the log levels. Please see log4r/configurator.rb.
There are two special levels, ALL and OFF which denote whether we are logging at all levels or at none. The ranks are:
ALL < log levels < OFF
Thus, setting the level to ALL will enable logging at all levels whereas OFF will turn off logging completely.
End users need only worry about the following classes:
Usage guidelines are covered in these files:
Author: | Leon Torres |
Version: | $Id: log4r.rb,v 1.7 2002/01/15 14:26:09 cepheus Exp $ |
Required files |
Classes and Modules |