PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\utils\MainLogger Class Reference
+ Inheritance diagram for pocketmine\utils\MainLogger:
+ Collaboration diagram for pocketmine\utils\MainLogger:

Public Member Functions

 __construct ($logFile, $hasANSI=false, $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=-1)
 

Protected Attributes

 $logFile
 
 $logStream
 
 $shutdown
 
 $hasANSI
 
 $logDebug
 

Detailed Description

Definition at line 26 of file MainLogger.php.

Constructor & Destructor Documentation

pocketmine\utils\MainLogger::__construct (   $logFile,
  $hasANSI = false,
  $logDebug = false 
)
Parameters
string$logFile
bool$hasANSI
bool$logDebug
Exceptions
\RuntimeException

Definition at line 43 of file MainLogger.php.

Member Function Documentation

static pocketmine\utils\MainLogger::getLogger ( )
static
Returns
MainLogger

Definition at line 59 of file MainLogger.php.

Referenced by pocketmine\command\ConsoleCommandSender\sendMessage().

+ Here is the caller graph for this function:

pocketmine\utils\MainLogger::setLogDebug (   $logDebug)
Parameters
bool$logDebug

Definition at line 101 of file MainLogger.php.


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