My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Protected Attributes
CI_Log Class Reference

Public Member Functions

 __construct ()
 
 write_log ($level= 'error', $msg, $php_error=FALSE)
 

Protected Attributes

 $_log_path
 
 $_threshold = 1
 
 $_date_fmt = 'Y-m-d H:i:s'
 
 $_enabled = TRUE
 
 $_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4')
 

Constructor & Destructor Documentation

__construct ( )

Constructor

Member Function Documentation

write_log (   $level = 'error',
  $msg,
  $php_error = FALSE 
)

Write Log File

Generally this function will be called using the global log_message() function

Parameters
stringthe error level
stringthe error message
boolwhether the error is a native PHP error
Returns
bool

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