Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
PhpXmlRpc\Helper\Logger Class Reference

Public Member Functions

 debugMessage ($message, $encoding=null)
 Echoes a debug message, taking care of escaping it when not in console mode.
 
 errorLog ($message)
 Writes a message to the error log.
 

Static Public Member Functions

static instance ()
 This class can be used as singleton, so that later we can move to DI patterns.
 

Static Protected Attributes

static $instance = null
 

Member Function Documentation

◆ debugMessage()

PhpXmlRpc\Helper\Logger::debugMessage ( $message,
$encoding = null )

Echoes a debug message, taking care of escaping it when not in console mode.

NB: if the encoding of the message is not known or wrong, and we are working in web mode, there is no guarantee of 100% accuracy, which kind of defeats the purpose of debugging

Parameters
string$message
string$encoding

◆ errorLog()

PhpXmlRpc\Helper\Logger::errorLog ( $message)

Writes a message to the error log.

Parameters
string$message

◆ instance()

static PhpXmlRpc\Helper\Logger::instance ( )
static

This class can be used as singleton, so that later we can move to DI patterns.

Return values
Logger

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