Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
4d7df9bf
Commit
4d7df9bf
authored
Jun 25, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志大小限制为20MB
parent
fe2afd50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
MyDailyRollingFileAppender.java
...com/yxproject/start/utils/MyDailyRollingFileAppender.java
+0
-0
log4j.properties
src/main/resources/log4j.properties
+4
-2
No files found.
src/main/java/com/yxproject/start/utils/MyDailyRollingFileAppender.java
0 → 100644
View file @
4d7df9bf
This diff is collapsed.
Click to expand it.
src/main/resources/log4j.properties
View file @
4d7df9bf
...
@@ -12,16 +12,17 @@ log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
...
@@ -12,16 +12,17 @@ log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern
=
[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
log4j.appender.stdout.layout.ConversionPattern
=
[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
### 输出DEBUG 级别以上的日志到=E://logs/error.log ###
### 输出DEBUG 级别以上的日志到=E://logs/error.log ###
log4j.appender.D
=
org.apache.log4j.
RollingFileAppender
log4j.appender.D
=
com.yxproject.start.utils.MyDaily
RollingFileAppender
log4j.appender.D.File
=
./logs/debug.log
log4j.appender.D.File
=
./logs/debug.log
log4j.appender.D.Append
=
true
log4j.appender.D.Append
=
true
log4j.appender.D.Threshold
=
DEBUG
log4j.appender.D.Threshold
=
DEBUG
log4j.appender.D.MaxFileSize
=
20MB
log4j.appender.D.MaxFileSize
=
20MB
log4j.appender.D.DatePattern
=
'_'yyyy-MM-dd'.log'
log4j.appender.D.layout
=
org.apache.log4j.PatternLayout
log4j.appender.D.layout
=
org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
log4j.appender.D.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
### 输出ERROR 级别以上的日志到=E://logs/error.log ###
### 输出ERROR 级别以上的日志到=E://logs/error.log ###
log4j.appender.E
=
org.apache.log4j.
RollingFileAppender
log4j.appender.E
=
com.yxproject.start.utils.MyDaily
RollingFileAppender
log4j.appender.E.File
=
./logs/error.log
log4j.appender.E.File
=
./logs/error.log
log4j.appender.E.Append
=
true
log4j.appender.E.Append
=
true
log4j.appender.E.Threshold
=
ERROR
log4j.appender.E.Threshold
=
ERROR
...
@@ -29,6 +30,7 @@ log4j.appender.E.MaxFileSize=20MB
...
@@ -29,6 +30,7 @@ log4j.appender.E.MaxFileSize=20MB
log4j.appender.E.layout
=
org.apache.log4j.PatternLayout
log4j.appender.E.layout
=
org.apache.log4j.PatternLayout
log4j.appender.E.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
log4j.appender.E.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
###打印SQL###
###打印SQL###
log4j.logger.org.mybatis
=
DEBUG
log4j.logger.org.mybatis
=
DEBUG
log4j.logger.java.sql
=
DEBUG
log4j.logger.java.sql
=
DEBUG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment