PocketMine
MainLogger Class Reference
Inheritance diagram for MainLogger:

Public Member Functions

 __construct ($logFile, $logDebug=false)
 
 emergency ($message)
 
 alert ($message)
 
 critical ($message)
 
 error ($message)
 
 warning ($message)
 
 notice ($message)
 
 info ($message)
 
 debug ($message)
 
 setLogDebug ($logDebug)
 
 logException (\Exception $e, $trace=null)
 
 log ($level, $message)
 
 shutdown ()
 
 run ()
 

Static Public Member Functions

static getLogger ()
 

Static Public Attributes

static $logger = null
 

Protected Member Functions

 send ($message, $level, $prefix, $color)
 

Protected Attributes

 $logFile
 
 $logStream
 
 $shutdown
 
 $logDebug
 

Constructor & Destructor Documentation

__construct (   $logFile,
  $logDebug = false 
)
Parameters
string$logFile
bool$logDebug
Exceptions

Member Function Documentation

static getLogger ( )
static
Returns
MainLogger
setLogDebug (   $logDebug)
Parameters
bool$logDebug

The documentation for this class was generated from the following file: