LOG_LEVEL_DEBUG
LOG_LEVEL_DEBUG
PhalApi_Logger_File 文件日记纪录类
使用示例:
//目录为./Runtime,且保存全部类型的日记
$logger = new PhalApi_Logger_File('./Runtime',
PhalApi_Logger::LOG_LEVEL_DEBUG | PhalApi_Logger::LOG_LEVEL_INFO | PhalApi_Logger::LOG_LEVEL_ERROR);
//日记会保存在在./Runtime/debug_log/目录下
$logger->debug('this is bebug test');
log(string $type, string $msg, \string/array $data) : NULL
Record log
wtite the log into different storage medium according your need
string | $type | the type of log, such as info, debug, error, etc. |
string | $msg | key description of log |
\string/array | $data | infomation of the context |