Skip to content

Commit d7b33d7

Browse files
committed
logs 目录重命名为 log
1 parent 26ee923 commit d7b33d7

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
var/cache/twig/*
33
var/cache/templates/*
44
var/cache/templates_c/*
5-
var/logs/*
5+
var/log/*
66
vendor/*
77
composer.lock

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ server
113113
│   └── js
114114
├── var 生成的文件目录
115115
│   ├── cache 缓存文件目录
116-
│   └── logs 日志文件目录
116+
│   └── log 日志文件目录
117117
└── views 视图文件目录
118118
└── index IndexController 对应的视图目录
119119
└── index.twig index 函数对应的视图文件
@@ -136,7 +136,7 @@ server
136136
// 应用
137137
'application' => array(
138138
'viewsDir' => BASE_PATH . '/views/',
139-
'logsDir' => BASE_PATH . '/var/logs/',
139+
'logDir' => BASE_PATH . '/var/log/',
140140
'cacheDir' => BASE_PATH . '/var/cache/',
141141
),
142142
// 数据库

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
return [
66
'application' => [
77
'viewsDir' => BASE_PATH . '/views/',
8-
'logsDir' => BASE_PATH . '/var/logs/',
8+
'logDir' => BASE_PATH . '/var/log/',
99
'cacheDir' => BASE_PATH . '/var/cache/',
1010
],
1111
'database' => [

config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

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

3232
// 创建应用的主要日志服务实例

var/log/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)