Class jLog

Description

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

Located in /core/jLog.class.php (line 66)


	
			
Variable Summary
static array $allMessages
static mixed $loggers
static mixed $messagesCount
Method Summary
static void dump (mixed $obj, [string $label = ''], [string $category = 'default'])
static array getMessages ([string|array $filter = false])
static integer getMessagesCount ( $category)
static boolean isPluginActivated (string $logger, string $category)
static void log (mixed $message, [string $category = 'default'])
static void logEx (Exception $exception, [string $category = 'default'])
static void outputLog (jResponse $response)
static void _dispatchLog ( $message)
static void _log ( $message,  $loggers)
Variables
static array $allMessages = array() (line 74)

all messages, when the memory logger is used

  • var: array of jILogMessage
  • access: protected
static mixed $loggers = array() (line 68)
  • access: protected
static mixed $messagesCount = array() (line 79)

messages count of each categories, for the memory logger

  • access: protected
Methods
static dump (line 92)

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

  • access: public
static void dump (mixed $obj, [string $label = ''], [string $category = 'default'])
  • mixed $obj: the value to dump
  • string $label: a label
  • string $category: the message category
static getMessages (line 194)

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

  • return: the list of jILogMessage object
  • access: public
static array getMessages ([string|array $filter = false])
  • string|array $filter: if given, category or list of categories of messages you want to retrieve
static getMessagesCount (line 210)
static integer getMessagesCount ( $category)
  • $category
static isPluginActivated (line 234)

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

  • return: true if it is activated
  • access: public
static boolean isPluginActivated (string $logger, string $category)
  • string $logger: the logger name
  • string $category: the category
static log (line 104)

log a message into the given category.

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

  • access: public
static void log (mixed $message, [string $category = 'default'])
  • mixed $message
  • string $category: the log type
static logEx (line 115)

log an exception into the given category.

  • access: public
static void logEx (Exception $exception, [string $category = 'default'])
  • Exception $exception
  • string $category: the log type
static outputLog (line 222)

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

given response

  • access: public
static void outputLog (jResponse $response)
static _dispatchLog (line 123)
  • access: protected
static void _dispatchLog ( $message)
  • $message
static _log (line 143)
  • access: protected
static void _log ( $message,  $loggers)
  • $message
  • $loggers

Documentation generated on Wed, 24 Sep 2014 22:00:57 +0200 by phpDocumentor 1.4.3