include/SugarLogger/LoggerManager.php

Show: inherited
Table of Contents

\LoggerManager

Package: SugarCRM

Log management

Api
 

Properties

Propertyprivate  $_instance= 'NULL'
static
Default valueNULLDetails
Type
n/a
Propertyprivate  $_level= ''fatal''
Default value'fatal'Details
Type
n/a
Propertyprivate  $_levelMapping= 'array( 'debug' => 100, 'info' => 70, 'warn' => 50, 'deprecated' => 40, 'error' => 25, 'fatal' => 10, 'security' => 5, 'off' => 0, )'
static
Default valuearray( 'debug' => 100, 'info' => 70, 'warn' => 50, 'deprecated' => 40, 'error' => 25, 'fatal' => 10, 'security' => 5, 'off' => 0, )Details
Type
n/a
Propertyprivate  $_logMapping= 'array( 'default' => 'SugarLogger', )'
static
Default valuearray( 'default' => 'SugarLogger', )Details
Type
n/a
Propertyprivate  $_loggers= 'array()'
static
Default valuearray()Details
Type
n/a

Methods

methodpublic__call( string $method, string $message ) : void

Overloaded method that handles the logging requests.

Parameters
Name Type Description
$method string
$message string
  • also handles array as parameter, though that is deprecated.
methodprivate__construct( ) : void

methodprotected_findAvailableLoggers( ) : void

Finds all the available loggers in the application

methodpublicassert( string $message, boolean $condition ) : void

Used for doing design-by-contract assertions in the code; when the condition fails we'll write the message to the debug log

Parameters
Name Type Description
$message string
$condition boolean
methodpublicgetAvailableLoggers( ) : void
static

methodpublicgetLogger( ) : void
static

Returns a logger instance

methodpublicgetLoggerLevels( ) : void
static

methodpublicsetLevel( string $name ) : void

Sets the logger to the level indicated

Parameters
Name Type Description
$name string

name of logger level to set it to

methodpublicsetLogger( string $level, string $logger ) : void
static

Sets the logger to use a particular backend logger for the given level. Set level to 'default' to make it the default logger for the application

Parameters
Name Type Description
$level string

name of logger level to set it to

$logger string

name of logger class to use

Documentation was generated by DocBlox 0.18.1.