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

Class: GliffyLog

Source Location: /GliffyLog.php

Class Overview


Class used for logging to the PHP error log console.


Constants

Methods



Class Details

[line 9]
Class used for logging to the PHP error log console.

This gives a bit more flexibility in logging levels and turning on/off certain messages without bringing in an entire logging framework.




[ Top ]


Class Methods


constructor GliffyLog [line 33]

GliffyLog GliffyLog( [integer $level = self::LOG_LEVEL_WARN], [ $use_error_log = true])

Create a GliffyLog



Tags:

access:  public


Parameters:

integer   $level   one of the constants for the logging level
   $use_error_log  

[ Top ]

method debug [line 47]

void debug( string $msg)

Print a debug message.



Tags:

access:  public


Parameters:

string   $msg   message

[ Top ]

method error [line 59]

void error( string $msg)

Print an error message.



Tags:

access:  public


Parameters:

string   $msg   message

[ Top ]

method info [line 55]

void info( string $msg)

Print an informational message.



Tags:

access:  public


Parameters:

string   $msg   message

[ Top ]

method level [line 42]

integer level( )

Gets this log's level.



Tags:

access:  public


[ Top ]

method log [line 65]

void log( integer $level, string $msg)

Generic log function



Tags:

access:  public


Parameters:

integer   $level   level of the message
string   $msg   the message to log

[ Top ]

method warn [line 51]

void warn( string $msg)

Print a warning message.



Tags:

access:  public


Parameters:

string   $msg   message

[ Top ]


Class Constants

LOG_LEVEL_DEBUG =  6

[line 18]

Logging level of debug, info, warnings, and errors


[ Top ]

LOG_LEVEL_ERROR =  3

[line 12]

Logging level of errors only


[ Top ]

LOG_LEVEL_INFO =  5

[line 16]

Logging level of info, warnings, and errors


[ Top ]

LOG_LEVEL_WARN =  4

[line 14]

Logging level of warnings and errors


[ Top ]



Documentation generated on Wed, 01 Apr 2009 18:11:08 -0700 by phpDocumentor 1.4.1