This is the central class in the log4j package. Most logging operations, except configuration, are done through this class.
In log4j this class replaces the Category class. There is no need to port deprecated classes; log4php Logger class doesn't extend Category.
Located in /Logger.php (line 53)
Class | Description |
---|---|
LoggerRoot | The root logger. |
Class autoloader This method is provided to be invoked within an __autoload() magic method.
Clears all logger definitions
Configures Log4PHP.
This method needs to be called before the first logging event has occured. If this methode is never called, the standard configuration takes place (@see LoggerConfiguratorBasic). If only the configuration file is given, the configurator class will be the XML Configurator or the INI Configurator, if no .xml ending could be determined.
If a custom configurator should be used, the configuration file is either null or the path to file the custom configurator uses. Make sure the configurator is already or can be loaded by PHP when necessary.
check if a given logger exists.
Returns the current configurator
Returns the current configuration file
Returns an array this whole Logger instances.
Returns the hierarchy used by this Logger.
Caution: do not use this hierarchy unless you have called initialize(). To get Loggers, use the Logger::getLogger and Logger::getRootLogger methods instead of operating on on the hierarchy directly.
Get a Logger by name (Delegate to Logger)
get the Root Logger (Delegate to Logger)
Initializes the log4php framework.
Destroy configurations for logger definitions
Safely close all appenders.
This is not longer necessary due the appenders shutdown via destructors.
Constructor.
Add a new Appender to the list of appenders of this Category instance.
If assertion parameter is false, then logs msg as an error statement.
Call the appenders in the hierarchy starting at this.
Log a message object with the DEBUG level including the caller.
Log a message object with the ERROR level including the caller.
Log a message object with the FATAL level including the caller.
This method creates a new logging event and logs the event without further checks.
It should not be called directly. Use info(), debug(), warn(), error() and fatal() wrappers.
Get the additivity flag for this Category instance.
Get the appenders contained in this category as an array.
Look for the appender named as name.
Starting from this category, search the category hierarchy for a non-null level and return it.
Return the category name.
Log a message object with the INFO Level.
Is the appender passed as parameter attached to this category?
Check whether this category is enabled for the DEBUG Level.
Check whether this category is enabled for a given Level passed as parameter.
Check whether this category is enabled for the info Level.
This generic form is intended to be used by wrappers.
Remove all previously added appenders from this Category instance.
Remove the appender passed as parameter form the list of appenders.
Set the additivity flag for this Category instance.
Set the level of this Category.
Sets the parent logger of this logger
Log a message with the WARN level.
Documentation generated on Fri, 27 Nov 2009 07:44:45 +0100 by phpDocumentor 1.4.3