jLog

utility class to log some message into a file into yourapp/var/log

package

jelix

subpackage

core_log

static

Methods

private constructor. static class

__construct() 

_dispatchLog

_dispatchLog(\jILogMessage $message) 
static

Arguments

$message

\jILogMessage

_log

_log(\jILogMessage $message, array $loggers) 
static

Arguments

$message

\jILogMessage

$loggers

array

log a dump of a php value (object or else) into the given category

dump(mixed $obj, string $label = '', string $category = 'default') 
static

Arguments

$obj

mixed

the value to dump

$label

string

a label

$category

string

the message category

returns messages stored in memory (if the memory logger is activated)

getMessages(string|array $filter = false) : array
static

Arguments

$filter

string|array

if given, category or list of categories of messages you want to retrieve

Response

array

the list of jILogMessage object

getMessagesCount

getMessagesCount( $category) : integer
static

Arguments

$category

Response

integer

indicate if, for the given category, the given logger is activated

isPluginActivated(string $logger, string $category) : boolean
static

Arguments

$logger

string

the logger name

$category

string

the category

Response

boolean

true if it is activated

log a message into the given category.

log(mixed $message, string $category = 'default') 
static

Warning: since it is called by error handler, it should not trigger errors! and should take care of case were an error could appear

Arguments

$message

mixed

$category

string

the log type

log an exception into the given category.

logEx(\Exception $exception, string $category = 'default') 
static

Arguments

$exception

\Exception

$category

string

the log type

call each loggers so they have the possibility to inject data into the given response

outputLog(\jResponse $response) 
static

Arguments

$response

\jResponse

Properties

loggers

loggers : array<mixed,\jILogger>
static
var

Type(s)

array<mixed,\jILogger>

all messages, when the memory logger is used

allMessages : array
static
var

array of jILogMessage

Type(s)

array

messages count of each categories, for the memory logger

messagesCount : 
static

Type(s)