Skip to content

Commit

Permalink
logs 目录重命名为 log
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Feb 27, 2018
1 parent 26ee923 commit d7b33d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
var/cache/twig/*
var/cache/templates/*
var/cache/templates_c/*
var/logs/*
var/log/*
vendor/*
composer.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ server
│   └── js
├── var 生成的文件目录
│   ├── cache 缓存文件目录
│   └── logs 日志文件目录
│   └── log 日志文件目录
└── views 视图文件目录
└── index IndexController 对应的视图目录
└── index.twig index 函数对应的视图文件
Expand All @@ -136,7 +136,7 @@ server
// 应用
'application' => array(
'viewsDir' => BASE_PATH . '/views/',
'logsDir' => BASE_PATH . '/var/logs/',
'logDir' => BASE_PATH . '/var/log/',
'cacheDir' => BASE_PATH . '/var/cache/',
),
// 数据库
Expand Down
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return [
'application' => [
'viewsDir' => BASE_PATH . '/views/',
'logsDir' => BASE_PATH . '/var/logs/',
'logDir' => BASE_PATH . '/var/log/',
'cacheDir' => BASE_PATH . '/var/cache/',
],
'database' => [
Expand Down
2 changes: 1 addition & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

// 日志记录器
$container->setShared('logger', function () {
$logFile = $this->config['application']['logsDir'] . '/soli.log';
$logFile = $this->config['application']['logDir'] . '/soli.log';
$stream = new StreamHandler($logFile, Logger::DEBUG);

// 创建应用的主要日志服务实例
Expand Down
Empty file added var/log/.gitkeep
Empty file.

0 comments on commit d7b33d7

Please sign in to comment.