Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Log Class Reference
+ Collaboration diagram for Log:

Public Member Functions

 __construct ($logfile="", $application="", $function="")
 
 debug ($string)
 
 callstack ($string)
 
 trace ($string)
 
 info ($string)
 
 warning ($string)
 
 error ($string)
 
 fatal ($string)
 
 deprecated ($string)
 
 setLogLevel ($logLevel)
 
 getLogLevel ()
 
 start ($text="")
 
 tic ($text)
 
 end ($text)
 
 push ($string)
 
 pop ()
 
 wlog ($sta, $str, $args=NULL, $facility=LOG_LOCAL6)
 

Data Fields

 $loghead
 
 $application
 
 $function
 
const DEBUG = "D"
 
const CALLSTACK = "C"
 
const TRACE = "T"
 
const INFO = "I"
 
const WARNING = "W"
 
const ERROR = "E"
 
const FATAL = "F"
 
const DEPRECATED = "O"
 

Protected Attributes

 $logLevel = null
 

Detailed Description

Log manager log message according to CORE_LOGLEVEL parameter

Definition at line 22 of file Class.Log.php.

Constructor & Destructor Documentation

__construct (   $logfile = "",
  $application = "",
  $function = "" 
)
Api:
initialize log manager
Parameters
string$logfile
string$application
string$function

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

+ Here is the call graph for this function:

Member Function Documentation

callstack (   $string)
Parameters
string$stringmessage text

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

+ Here is the call graph for this function:

debug (   $string)

log with debug level

Api:
log with debug level
Parameters
string$stringmessage text

Definition at line 102 of file Class.Log.php.

+ Here is the call graph for this function:

deprecated (   $string)

log with deprecated level add callstack

Api:
log with deprecated level
See Also
Log
Parameters
string$stringmessage text

Definition at line 165 of file Class.Log.php.

+ Here is the call graph for this function:

end (   $text)

log end time from last start

Parameters
string$texttext to log

Definition at line 215 of file Class.Log.php.

+ Here is the call graph for this function:

error (   $string)

log with error level

Api:
log with error level
Parameters
string$stringmessage text

Definition at line 145 of file Class.Log.php.

+ Here is the call graph for this function:

fatal (   $string)

log with fatal level

Api:
log with fatal level
Parameters
string$stringmessage text

Definition at line 154 of file Class.Log.php.

+ Here is the call graph for this function:

getLogLevel ( )
Returns
string

Definition at line 179 of file Class.Log.php.

+ Here is the call graph for this function:

info (   $string)

log with info level

Api:
log with info level
Parameters
string$stringmessage text

Definition at line 127 of file Class.Log.php.

+ Here is the call graph for this function:

pop ( )

Definition at line 237 of file Class.Log.php.

+ Here is the call graph for this function:

push (   $string)

Definition at line 223 of file Class.Log.php.

+ Here is the call graph for this function:

setLogLevel (   $logLevel)
Parameters
string$logLevel

Definition at line 172 of file Class.Log.php.

start (   $text = "")

to set start time

Parameters
string$textprefix text to set for next tic/end

Definition at line 190 of file Class.Log.php.

+ Here is the call graph for this function:

tic (   $text)

log partial time

See Also
start
Parameters
string$texttext to log

Definition at line 203 of file Class.Log.php.

+ Here is the call graph for this function:

trace (   $string)

log with trace level

Api:
log with trace level
Parameters
string$stringmesage text

Definition at line 118 of file Class.Log.php.

+ Here is the call graph for this function:

warning (   $string)

log with warning level

Api:
log with warning level
Parameters
string$stringmessage text

Definition at line 136 of file Class.Log.php.

+ Here is the call graph for this function:

wlog (   $sta,
  $str,
  $args = NULL,
  $facility = LOG_LOCAL6 
)

main log function

Parameters
string$stalog code (one character : IWEFDOT)
string$strmessage to log
null$argsunused
int$facilitysyslog level

Definition at line 253 of file Class.Log.php.

+ Here is the call graph for this function:

Field Documentation

$application

Definition at line 25 of file Class.Log.php.

$function

Definition at line 26 of file Class.Log.php.

$loghead

Definition at line 24 of file Class.Log.php.

$logLevel = null
protected

Definition at line 34 of file Class.Log.php.

const CALLSTACK = "C"

Constant to set log to callstack level

Definition at line 44 of file Class.Log.php.

const DEBUG = "D"

Constant to set log to debug level Debug level is used by Core. It's used to assert taht Core works properly

Definition at line 40 of file Class.Log.php.

const DEPRECATED = "O"

Constant to set log to deprecated level

Definition at line 70 of file Class.Log.php.

const ERROR = "E"

Constant to set log to error level

Definition at line 62 of file Class.Log.php.

const FATAL = "F"

Constant to set log to fatal level

Definition at line 66 of file Class.Log.php.

const INFO = "I"

Constant to set log to info level

Definition at line 54 of file Class.Log.php.

const TRACE = "T"

Constant to set log to trace level The trace level is a level reserved for user usage. Core will never log with this level

Definition at line 50 of file Class.Log.php.

const WARNING = "W"

Constant to set log to warning level

Definition at line 58 of file Class.Log.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen