Xinc-Logger
[ class tree: Xinc-Logger ] [ index: Xinc-Logger ] [ all elements ]

Class: Xinc_Logger

Source Location: /Xinc/Logger.php

Class Overview




Variables

Constants

Methods



Class Details

[line 36]


[ Top ]


Class Variables

static $logLevelDebug = array(1, 'debug')

[line 88]


Type:   mixed


[ Top ]

static $logLevelError = array(4, 'error')

[line 86]

Log levels


Type:   mixed


[ Top ]

static $logLevelInfo = array(2, 'info')

[line 90]


Type:   mixed


[ Top ]

static $logLevelVerbose = array(0, 'verbose')

[line 91]


Type:   mixed


[ Top ]

static $logLevelWarn = array(3, 'warn')

[line 87]


Type:   mixed


[ Top ]



Class Methods


static method getInstance [line 131]

static Xinc_Logger getInstance( )

Singleton getInstance method.



Tags:

access:  public


[ Top ]

static method tearDown [line 357]

static void tearDown( )



Tags:

access:  public


[ Top ]

method debug [line 229]

void debug( string $msg, [resource $fileHandle = null])

Log a message with priority 'debug'.



Tags:

access:  public


Parameters:

string   $msg  
resource   $fileHandle   fileHandle

[ Top ]

method emptyLogQueue [line 249]

void emptyLogQueue( )

Empty the log queue



Tags:

access:  public


[ Top ]

method error [line 196]

void error( string $msg, [resource $fileHandle = null])

Log a message with priority 'error'.



Tags:

access:  public


Parameters:

string   $msg  
resource   $fileHandle   fileHandle

[ Top ]

method flush [line 258]

void flush( )

Flush the log queue to the log file.



Tags:

access:  public


[ Top ]

method getLogLevel [line 121]

void getLogLevel( )



Tags:

access:  public


[ Top ]

method info [line 218]

void info( string $msg, [resource $fileHandle = null])

Log a message with priority 'info'.



Tags:

access:  public


Parameters:

string   $msg  
resource   $fileHandle   fileHandle

[ Top ]

method logLevelSet [line 116]

void logLevelSet( )



Tags:

access:  public


[ Top ]

method setBuildLogFile [line 335]

void setBuildLogFile( string $logFile)

Set the path to the log file.



Tags:

access:  public


Parameters:

string   $logFile  

[ Top ]

method setLogLevel [line 105]

void setLogLevel( $level)



Tags:

access:  public


Parameters:

   $level  

[ Top ]

method setXincLogFile [line 344]

void setXincLogFile( string $logFile)



Tags:

throws:  Xinc_Logger_Exception_NonWriteable
access:  public


Parameters:

string   $logFile  

[ Top ]

method verbose [line 240]

void verbose( string $msg, [resource $fileHandle = null])

Log a message with priority 'verbose'.



Tags:

access:  public


Parameters:

string   $msg  
resource   $fileHandle   fileHandle

[ Top ]

method warn [line 207]

void warn( string $msg, [resource $fileHandle = null])

Log a message with priority 'warn'.



Tags:

access:  public


Parameters:

string   $msg  
resource   $fileHandle   fileHandle

[ Top ]


Class Constants

DEFAULT_LOG_LEVEL =  2

[line 80]


[ Top ]

LOG_LEVEL_DEBUG =  1

[line 75]


[ Top ]

LOG_LEVEL_ERROR =  4

[line 78]


[ Top ]

LOG_LEVEL_INFO =  2

[line 76]


[ Top ]

LOG_LEVEL_VERBOSE =  0

[line 74]


[ Top ]

LOG_LEVEL_WARN =  3

[line 77]


[ Top ]



Documentation generated on Sun, 09 Dec 2012 21:49:30 +0100 by phpDocumentor 1.4.4