Ubiquity  2.4.4
php rapid development framework
Logger Class Reference

Abstract class for logging Ubiquity$Logger This class is part of Ubiquity. More...

+ Inheritance diagram for Logger:

Public Member Functions

 _registerError ()
 
 _log ($level, $context, $message, $part, $extra)
 
 _info ($context, $message, $part, $extra)
 
 _warn ($context, $message, $part, $extra)
 
 _error ($context, $message, $part, $extra)
 
 _critical ($context, $message, $part, $extra)
 
 _alert ($context, $message, $part, $extra)
 
 _asObjects ($reverse=true, $maxlines=10, $contexts=null)
 
 _clearAll ()
 
 _close ()
 

Static Public Member Functions

static registerError ()
 
static inContext ($contexts, $context)
 
static init (&$config)
 
static log ($level, $context, $message, $part=null, $extra=null)
 
static info ($context, $message, $part=null, $extra=null)
 
static warn ($context, $message, $part=null, $extra=null)
 
static error ($context, $message, $part=null, $extra=null)
 
static critical ($context, $message, $part=null, $extra=null)
 
static alert ($context, $message, $part=null, $extra=null)
 
static asObjects ($reverse=true, $maxlines=10, $contexts=null)
 
static clearAll ()
 
static close ()
 
static isActive ()
 

Static Private Member Functions

static createLogger (&$config)
 

Static Private Attributes

static $instance
 
static $test
 

Detailed Description

Abstract class for logging Ubiquity$Logger This class is part of Ubiquity.

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.3

Definition at line 14 of file Logger.php.

Member Function Documentation

◆ _alert()

_alert (   $context,
  $message,
  $part,
  $extra 
)
abstract

◆ _asObjects()

_asObjects (   $reverse = true,
  $maxlines = 10,
  $contexts = null 
)
abstract

◆ _clearAll()

_clearAll ( )
abstract

◆ _close()

_close ( )
abstract

◆ _critical()

_critical (   $context,
  $message,
  $part,
  $extra 
)
abstract

◆ _error()

_error (   $context,
  $message,
  $part,
  $extra 
)
abstract

◆ _info()

_info (   $context,
  $message,
  $part,
  $extra 
)
abstract

◆ _log()

_log (   $level,
  $context,
  $message,
  $part,
  $extra 
)
abstract

◆ _registerError()

_registerError ( )
abstract

◆ _warn()

_warn (   $context,
  $message,
  $part,
  $extra 
)
abstract

◆ alert()

static alert (   $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 77 of file Logger.php.

◆ asObjects()

static asObjects (   $reverse = true,
  $maxlines = 10,
  $contexts = null 
)
static

Definition at line 82 of file Logger.php.

◆ clearAll()

static clearAll ( )
static

Definition at line 88 of file Logger.php.

◆ close()

static close ( )
static

Definition at line 94 of file Logger.php.

◆ createLogger()

static createLogger ( $config)
staticprivate

Definition at line 22 of file Logger.php.

◆ critical()

static critical (   $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 72 of file Logger.php.

◆ error()

static error (   $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 67 of file Logger.php.

◆ inContext()

static inContext (   $contexts,
  $context 
)
static

Definition at line 39 of file Logger.php.

◆ info()

static info (   $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 57 of file Logger.php.

◆ init()

static init ( $config)
static

Definition at line 46 of file Logger.php.

◆ isActive()

static isActive ( )
static

Definition at line 118 of file Logger.php.

◆ log()

static log (   $level,
  $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 52 of file Logger.php.

◆ registerError()

static registerError ( )
static

Definition at line 35 of file Logger.php.

◆ warn()

static warn (   $context,
  $message,
  $part = null,
  $extra = null 
)
static

Definition at line 62 of file Logger.php.

Field Documentation

◆ $instance

$instance
staticprivate

Definition at line 19 of file Logger.php.

◆ $test

$test
staticprivate

Definition at line 20 of file Logger.php.


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