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 38)


	
			
Direct descendents
Class Description
Logger Main class for logging operations
Variable Summary
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, LoggerLevel $level, mixed $message)
boolean getAdditivity ()
array &getAllAppenders ()
LoggerAppender &getAppender (mixed $name)
Logger &getInstance (mixed $name)
string getName ()
void getPriority ()
void getResourceBundleString (mixed $key)
void info (mixed $message, [mixed $caller = null])
void isAttached (LoggerAppender $appender)
boolean isDebugEnabled ()
boolean isEnabledFor (LoggerLevel $level)
boolean isInfoEnabled ()
void l7dlog (mixed $priority, mixed $key, mixed $params, mixed $t)
void log (LoggerLevel $priority, mixed $message, [mixed $caller = null])
void removeAppender (mixed $appender)
void setAdditivity (boolean $additive)
void setHierarchy (LoggerHierarchy &$repository)
void setLevel (LoggerLevel $level)
void setPriority (mixed $priority)
void setResourceBundle (mixed $bundle)
void shutdown ()
void warn (mixed $message, [mixed $caller = null])
Variables
array $aai = array() (line 76)
boolean $additive = true (line 45)

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 50)
  • var: fully qualified class name
LoggerLevel $level = null (line 55)
  • var: The assigned level of this category.
string $name = '' (line 60)
  • var: name of this category.

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

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

Constructor.

Constructor.

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

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 110)

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 122)

Call the appenders in the hierarchy starting at this.

Call the appenders in the hierarchy starting at this.

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

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

Log a message object with the 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 157)

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

Log a message object with the 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 FATAL level including the caller.

Log a message object with the 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 208)

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, LoggerLevel $level, mixed $message)
  • mixed $caller: caller object or caller string id
  • LoggerLevel $level: log level
  • mixed $message: message
getAdditivity (line 218)

Get the additivity flag for this Category instance.

Get the additivity flag for this Category instance.

boolean getAdditivity ()
getAllAppenders (line 227)

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 243)

Look for the appender named as name.

Look for the appender named as name.

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

Please use the getEffectiveLevel() method instead.

Please use the getEffectiveLevel() method instead.

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

Please use LoggerManager::getCurrentLoggers() instead.

Please use LoggerManager::getCurrentLoggers() instead.

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

Please use LoggerManager::getLoggerRepository() instead.

Please use LoggerManager::getLoggerRepository() instead.

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

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.

LoggerLevel getEffectiveLevel ()
getHierarchy (line 279)
LoggerHierarchy &getHierarchy ()
getInstance (line 302)

Retrieve a category with named as the name parameter.

Retrieve a category with named as the name parameter.

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

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

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

  • return: or null
LoggerLevel getLevel ()
getLoggerRepository (line 320)

Return the the repository where this Category is attached.

Return the the repository where this Category is attached.

LoggerHierarchy &getLoggerRepository ()
getName (line 329)

Return the category name.

Return the category name.

string getName ()
getParent (line 338)

Returns the parent of this category.

Returns the parent of this category.

Logger &getParent ()
getPriority (line 347)

Please use getLevel() instead.

Please use getLevel() instead.

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

Return the inherited ResourceBundle for this category.

Return the inherited ResourceBundle for this category.

void getResourceBundle ()
getResourceBundleString (line 363)

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 372)

Return the root of the default category hierrachy.

Return the root of the default category hierrachy.

LoggerRoot &getRoot ()
info (line 383)

Log a message object with the INFO Level.

Log a message object with the INFO Level.

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

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 408)

Check whether this category is enabled for the DEBUG Level.

Check whether this category is enabled for the DEBUG Level.

boolean isDebugEnabled ()
isEnabledFor (line 423)

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 (LoggerLevel $level)
isInfoEnabled (line 436)

Check whether this category is enabled for the info Level.

Check whether this category is enabled for the info Level.

boolean isInfoEnabled ()
l7dlog (line 448)

Log a localized and parameterized message.

Log a localized and parameterized message.

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

This generic form is intended to be used by wrappers.

This generic form is intended to be used by wrappers.

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

Remove all previously added appenders from this Category instance.

Remove all previously added appenders from this Category instance.

void removeAllAppenders ()
removeAppender (line 487)

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 503)

Set the additivity flag for this Category instance.

Set the additivity flag for this Category instance.

void setAdditivity (boolean $additive)
  • boolean $additive
setHierarchy (line 523)

Only the Hiearchy class can set the hiearchy of a category.

Only the Hiearchy class can set the hiearchy of a category.

void setHierarchy (LoggerHierarchy &$repository)
setLevel (line 533)

Set the level of this Category.

Set the level of this Category.

void setLevel (LoggerLevel $level)
  • LoggerLevel $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 512)
void setPriority (mixed $priority)

Redefined in descendants as:
setResourceBundle (line 541)

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 550)
void shutdown ()
warn (line 561)

Log a message with the WARN level.

Log a message with the WARN level.

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

Documentation generated on Wed, 10 Sep 2003 22:44:31 +0200 by phpDocumentor 1.2.2