Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loginservice
Overview
Overview
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
lanmw
loginservice
Commits
a20a24a0
Commit
a20a24a0
authored
Sep 27, 2024
by
linxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改logback配置
parent
fdccd9c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
pom.xml
pom.xml
+3
-4
logback-custom.xml
src/main/resources/logback-custom.xml
+6
-6
No files found.
pom.xml
View file @
a20a24a0
...
@@ -216,10 +216,9 @@
...
@@ -216,10 +216,9 @@
</resource>
</resource>
<resource>
<resource>
<directory>
src/main/resources
</directory>
<directory>
src/main/resources
</directory>
<includes>
<excludes>
<include>
*.yml
</include>
<exclude>
application-*.yml
</exclude>
<include>
**/*.xml
</include>
</excludes>
</includes>
</resource>
</resource>
</resources>
</resources>
...
...
src/main/resources/logback-custom.xml
View file @
a20a24a0
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configuration>
<springProperty
name=
"
spring.redis.host"
source=
"spring
.redis.host"
/>
<springProperty
name=
"
redis.host"
source=
"spring.data
.redis.host"
/>
<springProperty
name=
"
spring.redis.port"
source=
"spring
.redis.port"
/>
<springProperty
name=
"
redis.port"
source=
"spring.data
.redis.port"
/>
<springProperty
name=
"
spring.redis.password"
source=
"spring
.redis.password"
/>
<springProperty
name=
"
redis.password"
source=
"spring.data
.redis.password"
/>
<appender
name=
"stdout"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<appender
name=
"stdout"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
charset=
"UTF-8"
>
<encoder
charset=
"UTF-8"
>
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
</appender>
</appender>
<appender
name=
"logstash"
class=
"com.cwbase.logback.RedisAppender"
>
<appender
name=
"logstash"
class=
"com.cwbase.logback.RedisAppender"
>
<host>
${
spring.
redis.host}
</host>
<host>
${redis.host}
</host>
<port>
${
spring.
redis.port}
</port>
<port>
${redis.port}
</port>
<password>
${
spring.
redis.password}
</password>
<password>
${redis.password}
</password>
<key>
logstash
</key>
<key>
logstash
</key>
<additionalField>
<additionalField>
<key>
user
</key>
<key>
user
</key>
...
...
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