Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
piplus-backend-v5-server-dockers
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
piplus-backend-v5
piplus-backend-v5-server-dockers
Commits
804566b5
Commit
804566b5
authored
Nov 06, 2016
by
focus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
为mycat增加logstash日志功能
parent
64e8d56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
log4j2.xml
piplus-backend-v5-mycat-docker/conf-prod/log4j2.xml
+11
-5
No files found.
piplus-backend-v5-mycat-docker/conf-prod/log4j2.xml
View file @
804566b5
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"WARN"
>
<Properties>
<Property
name=
"PATTERN"
>
%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [%t] (%l) - %m%n
</Property>
</Properties>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d [%-5p][%t] %m %throwable{full} (%C:%F:%L) %n"
/>
...
...
@@ -7,7 +10,7 @@
<RollingFile
name=
"RollingFile"
fileName=
"${sys:MYCAT_HOME}/logs/mycat.log"
filePattern=
"${sys:MYCAT_HOME}/logs/$${date:yyyy-MM}/mycat-%d{MM-dd}-%i.log.gz"
>
<PatternLayout>
<PatternLayout>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [%t] (%l) - %m%n
</Pattern>
</PatternLayout>
<Policies>
...
...
@@ -16,17 +19,20 @@
<TimeBasedTriggeringPolicy/>
</Policies>
</RollingFile>
<Socket
name=
"Logstash"
host=
"v5-prod-logstash"
port=
"4560"
protocol=
"TCP"
>
<PatternLayout
pattern=
"${PATTERN}"
/>
</Socket>
</Appenders>
<Loggers>
<!--<AsyncLogger name="io.mycat" level="info" includeLocation="true" additivity="false">-->
<!--<AppenderRef ref="Console"/>-->
<!--<AppenderRef ref="RollingFile"/>-->
<!--</AsyncLogger>-->
<asyncRoot
level=
"info"
includeLocation=
"true"
>
<asyncRoot
level=
"debug"
includeLocation=
"true"
>
<AppenderRef
ref=
"Console"
/>
<
AppenderRef
ref=
"RollingFile"
/
>
<
!-- <AppenderRef ref="RollingFile"/> --
>
<AppenderRef
ref=
"Logstash"
/>
</asyncRoot>
</Loggers>
</Configuration>
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