wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
Log Class Reference
+ Inheritance diagram for Log:

Public Member Functions

 debug ($message, $category)
 
 info ($message, $category)
 
 warn ($message, $category)
 
 error ($message, $category)
 
 fatal ($message, $category)
 
 isDebugEnabled ($category)
 
 isInfoEnabled ($category)
 
 isWarnEnabled ($category)
 
 isErrorEnabled ($category)
 
 isFatalEnabled ($category)
 
getLogger ($category)
 

Detailed Description

Log is used to log application events. The implementation is a wrapper over log4php. All methods may be called in a static way.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.Log.php 1462 2014-02-04 23:52:27Z iherwig
Note
This only reason, why this class inherits from Logger is to get the correct location information.
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 32 of file class.Log.php.

Member Function Documentation

Log::info (   $message,
  $category 
)

Print a info message for a category

Parameters
messageThe message
categoryThe category

Definition at line 49 of file class.Log.php.

References getLogger().

Referenced by CopyController\copyNode(), LoggingController\executeKernel(), DBUtil\executeScript(), BatchDisplayController\loadNode(), CopyController\startProcess(), DefaultOutputStrategy\writeFooter(), DefaultOutputStrategy\writeHeader(), DefaultOutputStrategy\writeObject(), and LogOutputStrategy\writeObject().

+ Here is the call graph for this function:

Log::warn (   $message,
  $category 
)
Log::fatal (   $message,
  $category 
)

Print a fatal message for a category

Parameters
messageThe message
categoryThe category

Definition at line 79 of file class.Log.php.

References getLogger().

Referenced by LoggingController\executeKernel(), and WCMFException\throwEx().

+ Here is the call graph for this function:

Log::isInfoEnabled (   $category)

Check if info level is enabled for a category

Parameters
categoryThe category
Returns
True/False

Definition at line 99 of file class.Log.php.

References getLogger().

Referenced by CopyController\copyNode(), BatchDisplayController\loadNode(), and CopyController\startProcess().

+ Here is the call graph for this function:

Log::isWarnEnabled (   $category)

Check if warn level is enabled for a category

Parameters
categoryThe category
Returns
True/False

Definition at line 109 of file class.Log.php.

References getLogger().

+ Here is the call graph for this function:

Log::isErrorEnabled (   $category)

Check if error level is enabled for a category

Parameters
categoryThe category
Returns
True/False

Definition at line 119 of file class.Log.php.

References getLogger().

+ Here is the call graph for this function:

Log::isFatalEnabled (   $category)

Check if fatal level is enabled for a category

Parameters
categoryThe category
Returns
True/False

Definition at line 129 of file class.Log.php.

References getLogger().

+ Here is the call graph for this function:

& Log::getLogger (   $category)

Get the log4php Logger instance for a specified category

Parameters
categoryThe category
Returns
A Logger The category

Definition at line 140 of file class.Log.php.

Referenced by debug(), error(), fatal(), info(), isDebugEnabled(), isErrorEnabled(), isFatalEnabled(), isInfoEnabled(), isWarnEnabled(), and warn().


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