Class LoggerCategory

Description

This class has been deprecated and replaced by the Logger subclass.

This class has been deprecated and replaced by the Logger subclass.

Located in Program_Root/log4php/LoggerCategory.php (line 40)


	
			
Direct descendents
Class Description
Logger Main class for logging operations
Variable Summary
array $aai
boolean $additive
string $fqcn
integer $level
string $name
Method Summary
LoggerCategory LoggerCategory (string $name)
void addAppender (LoggerAppender &$newAppender)
void assertLog ([bool $assertion = true], [string $msg = ''])
void debug (mixed $message, [mixed $caller = null])
void error (mixed $message, [mixed $caller = null])
void exists (string $name)
void fatal (mixed $message, [mixed $caller = null])
void forcedLog (mixed $caller, integer $level, mixed $message)
boolean getAdditivity ()
array &getAllAppenders ()
LoggerAppender &getAppender (mixed $name)
void &getHierarchy ()
Logger &getInstance (mixed $name)
void getLevel ()
string getName ()
void getPriority ()
void getResourceBundleString (mixed $key)
void info (mixed $message, [mixed $caller = null])
void isAttached (LoggerAppender $appender)
boolean isDebugEnabled ()
boolean isEnabledFor (integer $level)
boolean isInfoEnabled ()
void l7dlog (mixed $priority, mixed $key, mixed $params, mixed $t)
void log (integer $priority, mixed $message, [mixed $caller = null])
void removeAppender (mixed $appender)
void setAdditivity (boolean $additive)
void setLevel (mixed $level)
void setPriority (mixed $priority)
void setResourceBundle (mixed $bundle)
void shutdown ()
void warn (mixed $message, [mixed $caller = null])
Variables
array $aai = array() (line 78)
boolean $additive = true (line 47)

Additivity is set to true by default, that is children inherit the appenders of their ancestors by default.

Additivity is set to true by default, that is children inherit the appenders of their ancestors by default.

string $fqcn = 'LoggerCategory' (line 52)
  • var: fully qualified class name
integer $level = null (line 57)
  • var: The assigned level of this category.
string $name = '' (line 62)
  • var: name of this category.

Redefined in descendants as:
Logger $parent = null (line 67)
  • var: The parent of this category.

Redefined in descendants as:
LoggerHierarchy $repository = null (line 72)
  • var: the object repository
Methods
Constructor LoggerCategory (line 89)

Constructor.

Constructor.

LoggerCategory LoggerCategory (string $name)
  • string $name: Category name
addAppender (line 100)

Add a new Appender to the list of appenders of this Category instance.

Add a new Appender to the list of appenders of this Category instance.

void addAppender (LoggerAppender &$newAppender)
assertLog (line 112)

If assertion parameter is false, then logs msg as an error statement.

If assertion parameter is false, then logs msg as an error statement.

void assertLog ([bool $assertion = true], [string $msg = ''])
  • bool $assertion
  • string $msg: message to log
callAppenders (line 124)

Call the appenders in the hierarchy starting at this.

Call the appenders in the hierarchy starting at this.

void callAppenders (LoggerLoggingEvent $event)
debug (line 142)

Log a message object with the LOGGER_LEVEL_DEBUG level including the caller.

Log a message object with the LOGGER_LEVEL_DEBUG level including the caller.

void debug (mixed $message, [mixed $caller = null])
  • mixed $message: message
  • mixed $caller: caller object or caller string id
error (line 158)

Log a message object with the LOGGER_LEVEL_ERROR level including the caller.

Log a message object with the LOGGER_LEVEL_ERROR level including the caller.

void error (mixed $message, [mixed $caller = null])
  • mixed $message: message
  • mixed $caller: caller object or caller string id
exists (line 175)

Deprecated.

Deprecated. Please use LoggerManager::exists() instead.

void exists (string $name)
  • string $name
fatal (line 186)

Log a message object with the LOGGER_LEVEL_FATAL level including the caller.

Log a message object with the LOGGER_LEVEL_FATAL level including the caller.

void fatal (mixed $message, [mixed $caller = null])
  • mixed $message: message
  • mixed $caller: caller object or caller string id
forcedLog (line 207)

This method creates a new logging event and logs the event without further checks.

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.

void forcedLog (mixed $caller, integer $level, mixed $message)
  • mixed $caller: caller object or caller string id
  • integer $level: log level
  • mixed $message: message
getAdditivity (line 217)

Get the additivity flag for this Category instance.

Get the additivity flag for this Category instance.

boolean getAdditivity ()
getAllAppenders (line 226)

Get the appenders contained in this category as an array.

Get the appenders contained in this category as an array.

  • return: collection of appenders
array &getAllAppenders ()
getAppender (line 242)

Look for the appender named as name.

Look for the appender named as name.

LoggerAppender &getAppender (mixed $name)
getChainedPriority (line 251)

Please use the getEffectiveLevel() method instead.

Please use the getEffectiveLevel() method instead.

  • deprecated:
void getChainedPriority ()
getCurrentCategories (line 260)

Please use LoggerManager::getCurrentLoggers() instead.

Please use LoggerManager::getCurrentLoggers() instead.

  • deprecated:
void getCurrentCategories ()
getDefaultHierarchy (line 269)

Please use LoggerManager::getLoggerRepository() instead.

Please use LoggerManager::getLoggerRepository() instead.

  • deprecated:
void getDefaultHierarchy ()
getEffectiveLevel (line 278)

Starting from this category, search the category hierarchy for a non-null level and return it.

Starting from this category, search the category hierarchy for a non-null level and return it.

void getEffectiveLevel ()
getHierarchy (line 291)

Please use getLoggerRepository() instead.

Please use getLoggerRepository() instead.

  • deprecated:
void &getHierarchy ()
getInstance (line 300)

Retrieve a category with named as the name parameter.

Retrieve a category with named as the name parameter.

Logger &getInstance (mixed $name)
getLevel (line 308)

Returns the assigned Level, if any, for this Category.

Returns the assigned Level, if any, for this Category.

void getLevel ()
getLoggerRepository (line 317)

Return the the repository where this Category is attached.

Return the the repository where this Category is attached.

LoggerHierarchy &getLoggerRepository ()
getName (line 326)

Return the category name.

Return the category name.

string getName ()
getParent (line 335)

Returns the parent of this category.

Returns the parent of this category.

Logger &getParent ()
getPriority (line 344)

Please use getLevel() instead.

Please use getLevel() instead.

  • deprecated:
void getPriority ()
getResourceBundle (line 352)

Return the inherited ResourceBundle for this category.

Return the inherited ResourceBundle for this category.

void getResourceBundle ()
getResourceBundleString (line 360)

Returns the string resource coresponding to key in this category's inherited resource bundle.

Returns the string resource coresponding to key in this category's inherited resource bundle.

void getResourceBundleString (mixed $key)
getRoot (line 369)

Return the root of the default category hierrachy.

Return the root of the default category hierrachy.

LoggerRoot &getRoot ()
info (line 380)

Log a message object with the LOGGER_LEVEL_INFO Level.

Log a message object with the LOGGER_LEVEL_INFO Level.

void info (mixed $message, [mixed $caller = null])
  • mixed $message: message
  • mixed $caller: caller object or caller string id
isAttached (line 395)

Is the appender passed as parameter attached to this category?

Is the appender passed as parameter attached to this category?

void isAttached (LoggerAppender $appender)
isDebugEnabled (line 404)

Check whether this category is enabled for the LOGGER_LEVEL_DEBUG Level.

Check whether this category is enabled for the LOGGER_LEVEL_DEBUG Level.

boolean isDebugEnabled ()
isEnabledFor (line 419)

Check whether this category is enabled for a given Level passed as parameter.

Check whether this category is enabled for a given Level passed as parameter.

boolean isEnabledFor (integer $level)
  • integer $level: level
isInfoEnabled (line 432)

Check whether this category is enabled for the info Level.

Check whether this category is enabled for the info Level.

boolean isInfoEnabled ()
l7dlog (line 443)

Log a localized and parameterized message.

Log a localized and parameterized message.

void l7dlog (mixed $priority, mixed $key, mixed $params, mixed $t)
log (line 455)

This generic form is intended to be used by wrappers.

This generic form is intended to be used by wrappers.

void log (integer $priority, mixed $message, [mixed $caller = null])
  • integer $priority: a valid level
  • mixed $message: message
  • mixed $caller: caller object or caller string id
removeAllAppenders (line 468)

Remove all previously added appenders from this Category instance.

Remove all previously added appenders from this Category instance.

void removeAllAppenders ()
removeAppender (line 482)

Remove the appender passed as parameter form the list of appenders.

Remove the appender passed as parameter form the list of appenders.

void removeAppender (mixed $appender)
setAdditivity (line 498)

Set the additivity flag for this Category instance.

Set the additivity flag for this Category instance.

void setAdditivity (boolean $additive)
  • boolean $additive
setLevel (line 517)

Set the level of this Category.

Set the level of this Category.

void setLevel (mixed $level)
  • mixed $level: a level string or a level costant

Redefined in descendants as:
  • LoggerRoot::setLevel() : Setting a null value to the level of the root category may have catastrophic results.
setPriority (line 507)
void setPriority (mixed $priority)

Redefined in descendants as:
setResourceBundle (line 526)

Set the resource bundle to be used with localized logging methods

Set the resource bundle to be used with localized logging methods

void setResourceBundle (mixed $bundle)
shutdown (line 535)
void shutdown ()
warn (line 546)

Log a message with the LOGGER_LEVEL_WARN level.

Log a message with the LOGGER_LEVEL_WARN level.

void warn (mixed $message, [mixed $caller = null])
  • mixed $message: message
  • mixed $caller: caller object or caller string id

Documentation generated on Wed, 3 Sep 2003 01:02:28 +0200 by phpDocumentor 1.2.2