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

Class: PhpLight_Log

Source Location: /Log.php

Class Overview


Logging class


Variables

Constants

Methods



Class Details

[line 21]
Logging class



[ Top ]


Class Variables

static $_priorityTranslate = array(        
        'EMERG' => self::EMERG,
        'ALERT' => self::ALERT,
        'ERR' => self::ERR,
        'ERROR' => self::ERR,
        'WARN' => self::WARN,
        'WARNING' => self::WARN,
        'NOTICE' => self::NOTICE,
        'INFO' => self::INFO,
        'DEBUG' => self::DEBUG
    )

[line 37]

Priority translate



Tags:

access:  protected

Type:   array


[ Top ]

$_logLevel =

[line 61]

Log level



Tags:

access:  protected

Type:   integer


[ Top ]



Class Methods


static method alert [line 310]

static void alert( string $message, string $file, integer $line)

Logs a message with ALERT priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method canLog [line 132]

static boolean canLog( )

Check if we have everything we need to log



Tags:

access:  public


[ Top ]

static method critical [line 323]

static void critical( string $message, string $file, integer $line)

Logs a message with CRIT priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method debug [line 219]

static void debug( string $message, string $file, integer $line)

Logs a message with DEBUG priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method emergency [line 284]

static void emergency( string $message, string $file, integer $line)

Logs a message with EMERG priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method enable [line 87]

static void enable( string $logFile, string $logLevel)

Enable logging



Tags:

access:  public


Parameters:

string   $logFile  
string   $logLevel  

[ Top ]

static method error [line 232]

static void error( string $message, string $file, integer $line)

Logs a message with ERROR priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method getElapsedTime [line 144]

static float|null getElapsedTime( )

Get the elapsed time



Tags:

access:  public


[ Top ]

static method getInstance [line 118]

static PhpLight_Log getInstance( )

Returns an instance of this class.



Tags:

access:  public


[ Top ]

static method getMemStats [line 198]

static void getMemStats( &$min, &$max, integer $min, integer $max)

Get the elapsed time



Tags:

access:  public


Parameters:

integer   $min  
integer   $max  
   &$min  
   &$max  

[ Top ]

static method info [line 297]

static void info( string $message, string $file, integer $line)

Logs a message with INFO priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method logMessage [line 162]

static void logMessage( string $message, integer $priority, $file, $line)

Logs a message with the current logger object from registry



Tags:

access:  public


Parameters:

string   $message  
integer   $priority  
   $file  
   $line  

[ Top ]

static method notice [line 271]

static void notice( string $message, string $file, integer $line)

Logs a message with NOTICE priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method translateLevel [line 104]

static integer translateLevel( string $level)

Translate log level



Tags:

access:  public


Parameters:

string   $level  

[ Top ]

static method warn [line 258]

static void warn( string $message, string $file, integer $line)

Logs a message with WARN priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]

static method warning [line 245]

static void warning( string $message, string $file, integer $line)

Logs a message with WARN priority



Tags:

access:  public


Parameters:

string   $message   Log message
string   $file   Current file name
integer   $line   Current file line

[ Top ]


Class Constants

ALERT =  1

[line 24]


[ Top ]

CRIT =  2

[line 25]


[ Top ]

DEBUG =  7

[line 30]


[ Top ]

EMERG =  0

[line 23]


[ Top ]

ERR =  3

[line 26]


[ Top ]

INFO =  6

[line 29]


[ Top ]

NOTICE =  5

[line 28]


[ Top ]

WARN =  4

[line 27]


[ Top ]



Documentation generated on Fri, 07 Oct 2011 08:06:19 +0300 by phpDocumentor 1.4.3