Public Member Functions

log2command_log Class Reference

Logging class. More...

Inheritance diagram for log2command_log:
log2command_base

List of all members.

Public Member Functions

 debug ($string)
 Log a debug message.
 error ($string)
 Log an error.
 info ($string)
 Log an info message.
 log ($priority, $string)
 Logs a message.
 notice ($string)
 Log a notice.
 warning ($string)
 Log a warning.

Detailed Description

Logging class.

Logs messages of various priorities to either stdout (if no output log is specified in the conf file) or a file.

Author:
Edward Plainview <it@sverigedemokraterna.se>

Member Function Documentation

debug ( string  ) 

Log a debug message.

Parameters:
$string Debug message.
error ( string  ) 

Log an error.

Parameters:
$string Error message.
info ( string  ) 

Log an info message.

Parameters:
$string Info message.
log ( priority,
string 
)

Logs a message.

Parameters:
$priority Numeric error level. Use the LOG_ defines.
$string Log message.
notice ( string  ) 

Log a notice.

Parameters:
$string Notice message.
warning ( string  ) 

Log a warning.

Parameters:
$string Warning message.

The documentation for this class was generated from the following file:
 All Classes Functions Variables