PHP 클래스 CI_Log, TastyIgniter

see https://github.com/stevethomas/codeigniter-monolog & https://github.com/Seldaek/monolog
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_date_fmt string Format of timestamp for log files
$_enabled boolean Whether or not the logger can write to the log files
$_file_ext string Filename extension
$_file_permissions integer File permissions
$_levels array Predefined logging levels
$_log_path string Path to save log files
$_threshold integer Level of logging
$_threshold_array array Array of threshold levels to log

공개 메소드들

메소드 설명
__construct ( ) : void Class constructor
write_log ( string $level, string $msg ) : boolean Write Log File

보호된 메소드들

메소드 설명
_format_line ( string $level, string $date, $message ) : string Format the log line.

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( ) : void
리턴 void

_format_line() 보호된 메소드

This is for extensibility of log formatting If you want to change the log format, extend the CI_Log class and override this method
protected _format_line ( string $level, string $date, $message ) : string
$level string The error level
$date string Formatted date string
리턴 string Formatted log line with a new line character '\n' at the end

write_log() 공개 메소드

Generally this function will be called using the global log_message() function
public write_log ( string $level, string $msg ) : boolean
$level string The error level: 'error', 'debug' or 'info'
$msg string The error message
리턴 boolean

프로퍼티 상세

$_date_fmt 보호되어 있는 프로퍼티

Format of timestamp for log files
protected string $_date_fmt
리턴 string

$_enabled 보호되어 있는 프로퍼티

Whether or not the logger can write to the log files
protected bool $_enabled
리턴 boolean

$_file_ext 보호되어 있는 프로퍼티

Filename extension
protected string $_file_ext
리턴 string

$_file_permissions 보호되어 있는 프로퍼티

File permissions
protected int $_file_permissions
리턴 integer

$_levels 보호되어 있는 프로퍼티

Predefined logging levels
protected array $_levels
리턴 array

$_log_path 보호되어 있는 프로퍼티

Path to save log files
protected string $_log_path
리턴 string

$_threshold 보호되어 있는 프로퍼티

Level of logging
protected int $_threshold
리턴 integer

$_threshold_array 보호되어 있는 프로퍼티

Array of threshold levels to log
protected array $_threshold_array
리턴 array