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

Class: Logger

Source Location: /logging/Logger.class.php

Class Overview

MojaviObject
   |
   --Logger

Logger provides an easy way to manage multiple log destinations and write to them all simultaneously.


Author(s):

  • Sean Kerr (skerr@mojavi.org)

Version:

  • $Id: Logger.class.php 761 2005-01-29 06:20:01Z seank $

Copyright:

Variables

Constants

Methods


Child classes:

ErrorLogger
$Id: ErrorLogger.class.php 65 2004-10-26 03:16:15Z seank $

Inherited Methods

Class: MojaviObject

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

Class Details

[line 24]
Logger provides an easy way to manage multiple log destinations and write to them all simultaneously.



Tags:

version:  $Id: Logger.class.php 761 2005-01-29 06:20:01Z seank $
since:  1.0.0
copyright:  (c) Sean Kerr, http://www.mojavi.org
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Class Variables

$exitPriority =

[line 72]


Type:   mixed


[ Top ]

$priority =

[line 73]


Type:   mixed


[ Top ]



Class Methods


method getAppender [line 90]

Appender getAppender( string $name)

Retrieve an appender.



Tags:

return:  An Appender, if an appender with the name exists, otherwise null.
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   An appender name.

[ Top ]

method getExitPriority [line 112]

int getExitPriority( )

Retrieve the exit priority level.

This is the priority level required in order to immediately exit the request.




Tags:

return:  The exit priority level.
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method getPriority [line 132]

int getPriority( )

Retrieve the priority level.

This is the priority level required before a message will be written to the log.




Tags:

return:  The priority level.
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method log [line 151]

void log( Message $message)

Log a message.



Tags:

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


Parameters:

Message   $message   A Message instance.

[ Top ]

method removeAppender [line 205]

Appender removeAppender( string $name)

Remove an appender.

This does not shutdown the appender. The shutdown method must be called manually.




Tags:

return:  An Appender, if one with the name exists, otherwise null.
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   An appender name.

[ Top ]

method setAppender [line 241]

void setAppender( string $name, Appender $appender)

Set an appender.

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




Tags:

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


Parameters:

string   $name   An appender name.
Appender   $appender   An Appender instance.

[ Top ]

method setExitPriority [line 273]

void setExitPriority( int $priority)

Set the exit priority level.



Tags:

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


Parameters:

int   $priority   An exit priority level.

[ Top ]

method setPriority [line 292]

void setPriority( int $priority)

Set the priority level.



Tags:

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


Parameters:

int   $priority   A priority level.

[ Top ]

method shutdown [line 309]

void shutdown( )

Execute the shutdown procedure.



Tags:

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


[ Top ]


Class Constants

DEBUG =  1000

[line 36]

Debug level.



Tags:

since:  3.0.0

[ Top ]

ERROR =  4000

[line 43]

Error level.



Tags:

since:  3.0.0

[ Top ]

FATAL =  5000

[line 64]

Fatal level.



Tags:

since:  3.0.0

[ Top ]

INFO =  2000

[line 50]

Information level.



Tags:

since:  3.0.0

[ Top ]

WARN =  3000

[line 57]

Warning level.



Tags:

since:  3.0.0

[ Top ]



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