-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jiangbj
committed
May 10, 2019
1 parent
ca7a531
commit 0af0161
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,8 @@ Temporary Items | |
# 环境文件 | ||
.uini | ||
ErrorFiles | ||
|
||
u.php | ||
logs | ||
# 缓存文件夹 | ||
update/ | ||
application/logs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
require_once '../vendor/autoload.php'; | ||
|
||
use \logger\Logger; | ||
|
||
#设置logs根目录 | ||
define('LOG_PATH', realpath(__DIR__).DIRECTORY_SEPARATOR.'logs'.DIRECTORY_SEPARATOR); // 日志目录 | ||
Logger::i('测试字符串内容', '中文路径名/测试文件', '0'); | ||
Logger::i(array('数组内容'), 'array/res', '1'); | ||
Logger::i(array('数组内容'), 'array/res', '2'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters