Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
PluginLogger Class Reference
Inheritance diagram for PluginLogger:
[legend]
Collaboration diagram for PluginLogger:
[legend]

Public Member Functions

 addAttachment (\LoggerAttachment $attachment)
 
 removeAttachment (\LoggerAttachment $attachment)
 
 removeAttachments ()
 
 getAttachments ()
 
 __construct (Plugin $context)
 
 emergency ($message)
 
 alert ($message)
 
 critical ($message)
 
 error ($message)
 
 warning ($message)
 
 notice ($message)
 
 info ($message)
 
 debug ($message)
 
 logException (\Throwable $e, $trace=null)
 
 log ($level, $message)
 

Constructor & Destructor Documentation

__construct ( Plugin  $context)
Parameters
Plugin$context

Member Function Documentation

addAttachment ( \LoggerAttachment  $attachment)
Parameters
LoggerAttachment$attachment

Implements AttachableLogger.

alert (   $message)

Action must me taken immediately

Parameters
string$message

Implements Logger.

critical (   $message)

Critical conditions

Parameters
string$message

Implements Logger.

debug (   $message)

Detailed debug information.

Parameters
string$message

Implements Logger.

emergency (   $message)

System is unusable

Parameters
string$message

Implements Logger.

error (   $message)

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters
string$message

Implements Logger.

getAttachments ( )
Returns
[]

Implements AttachableLogger.

info (   $message)

Inersting events.

Parameters
string$message

Implements Logger.

log (   $level,
  $message 
)

Logs with an arbitrary level.

Parameters
mixed$level
string$message

Implements Logger.

logException ( \Throwable  $e,
  $trace = null 
)

Logs a Throwable object

Parameters
Throwable$e
$trace

Implements Logger.

notice (   $message)

Normal but significant events.

Parameters
string$message

Implements Logger.

removeAttachment ( \LoggerAttachment  $attachment)
Parameters
LoggerAttachment$attachment

Implements AttachableLogger.

warning (   $message)

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters
string$message

Implements Logger.


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