mojavi
[ class tree: mojavi ] [ index: mojavi ] [ all elements ]

Class: LogManager

Source Location: /logging/LogManager.class.php

Class Overview


LogManager manages all loggers.


Author(s):

  • Sean Kerr

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
LogManager manages all loggers.



Tags:

since:  2.0
author:  Sean Kerr


[ Top ]


Class Methods


method addLogger [line 80]

void addLogger( string $name, Logger &$logger)

Add a logger.



<note> If a logger with the given name already exists, an error will be reported. </note>




Tags:

since:  2.0
access:  public


Parameters:

string   $name   A logger name.
Logger   &$logger   A Logger instance.

[ Top ]

method cleanup [line 116]

void cleanup( )

Cleanup all loggers.



<note> If a logger with the given name already exists, an error will be reported. </note>




Tags:

since:  2.0
access:  public


[ Top ]

method getDefaultLogger [line 139]

Logger &getDefaultLogger( )

Retrieve the default logger.



Tags:

return:  The default Logger instance.
since:  2.0
access:  public


[ Top ]

method getInstance [line 156]

LogManager &getInstance( )

Retrieve the single instance of LogManager.



Tags:

return:  A LogManager instance.
since:  2.0
access:  public


[ Top ]

method getLogger [line 190]

Logger &getLogger( [string $name = 'default'])

Retrieve a logger.



<note> If a name is not specified, the default logger is returned. </note>




Tags:

return:  A Logger instance, if the given Logger exists, otherwise NULL.
since:  2.0
access:  public


Parameters:

string   $name   A logger name.

[ Top ]

method getLoggers [line 216]

array &getLoggers( )

Retrieve an associative array of loggers.



Tags:

return:  An array of loggers.
since:  2.0
access:  public


[ Top ]

method hasLogger [line 234]

bool hasLogger( string $name)

Determine if a logger exists.



Tags:

return:  TRUE, if the given logger exists, otherwise FALSE.
since:  2.0
access:  public


Parameters:

string   $name   A logger name.

[ Top ]

method removeLogger [line 259]

Logger &removeLogger( string $name)

Remove a logger.



<note> You cannot remove the default logger. </note>




Tags:

return:  A Logger instance, if the given logger exists and has been removed, otherwise NULL.


Parameters:

string   $name   A logger name.

[ Top ]


Documentation generated on Wed, 15 Jun 2005 11:43:35 +0900 by phpDocumentor 1.2.3