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

Class: LoggerManager

Source Location: /logging/LoggerManager.class.php

Class Overview

MojaviObject
   |
   --LoggerManager

LoggerManager provides accessibility and management of all loggers.


Author(s):

  • Sean Kerr (skerr@mojavi.org)

Version:

  • $Id: LoggerManager.class.php 757 2005-01-28 18:06:13Z seank $

Copyright:

Methods


Inherited Methods

Class: MojaviObject

MojaviObject::toString()
Retrieve a string representation of this object.

Class Details

[line 23]
LoggerManager provides accessibility and management of all loggers.



Tags:

version:  $Id: LoggerManager.class.php 757 2005-01-28 18:06:13Z seank $
since:  3.0.0
copyright:  (c) Sean Kerr, http://www.mojavi.org
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Class Methods


method getLogger [line 48]

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

Retrieve a logger.



Tags:

return:  A Logger, if a logger with the name exists, otherwise null.
static:  
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   A logger name.

[ Top ]

method getLoggerNames [line 72]

array getLoggerNames( )

Retrieve a list of logger names.



Tags:

return:  An indexed array of logger names.
static:  
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method hasLogger [line 91]

bool hasLogger( string $name)

Indicates that a logger exists.



Tags:

return:  true, if the logger exists, otherwise false.
static:  
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   A logger name.

[ Top ]

method removeLogger [line 113]

Logger &removeLogger( string $name)

Remove a logger.



Tags:

return:  A Logger, if the logger has been removed, otherwise null.
static:  
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)
throws:  LoggingException If the logger name is 'default', which cannot be removed.


Parameters:

string   $name   A logger name.

[ Top ]

method setLogger [line 161]

void setLogger( string $name, Logger $logger)

Set a new logger instance.

If a logger with the name already exists, an exception will be thrown.




Tags:

static:  
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)
throws:  LoggingException If a logger with the name already exists.


Parameters:

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

[ Top ]

method shutdown [line 191]

void shutdown( )

Execute the shutdown procedure.



Tags:

static:  
access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Documentation generated on Tue, 21 Feb 2006 01:45:20 +0900 by phpDocumentor 1.3.0RC5