Open Monograph Press  3.3.0
PhpXmlRpc\Helper\Logger Class Reference

Public Member Functions

 debugMessage ($message, $encoding=null)
 

Static Public Member Functions

static instance ()
 

Static Protected Attributes

static $instance = null
 

Detailed Description

Definition at line 5 of file Logger.php.

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

Definition at line 31 of file Logger.php.

◆ instance()

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

This class is singleton, so that later we can move to DI patterns.

Returns
Logger

Definition at line 14 of file Logger.php.

References PhpXmlRpc\Helper\Logger\$instance.

Referenced by PhpXmlRpc\Helper\Http\parseResponseHeaders().

Field Documentation

◆ $instance

PhpXmlRpc\Helper\Logger::$instance = null
staticprotected

Definition at line 7 of file Logger.php.

Referenced by PhpXmlRpc\Helper\Logger\instance().


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