Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
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
shenjunjie
middleware-automatic
Commits
8c710b57
Commit
8c710b57
authored
Apr 07, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023年04月07日 log日志依赖修改
parent
05389afc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
47 deletions
+37
-47
middleware-automatic-center-client/pom.xml
+10
-4
middleware-automatic-center-server/pom.xml
+4
-10
middleware-automatic-center-server/src/main/resources/log4j2.xml
+1
-1
middleware-automatic-center-son/pom.xml
+20
-10
middleware-automatic-center-son/src/main/resources/log4j2.xml
+1
-1
pom.xml
+1
-21
No files found.
middleware-automatic-center-client/pom.xml
View file @
8c710b57
...
...
@@ -36,15 +36,21 @@
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-1.2-api
</artifactId>
<!-- <scope>provided</scope>--
>
<scope>
compile
</scope>
<version>
${log4j.version}
</version
>
<scope>
provided
</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<!-- <scope>provided</scope>-->
<scope>
compile
</scope>
<version>
${slf4j.version}
</version>
<scope>
provided
</scope>
<exclusions>
<exclusion>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
middleware-automatic-center-server/pom.xml
View file @
8c710b57
...
...
@@ -101,6 +101,10 @@
<groupId>
org.apache.zookeeper
</groupId>
<artifactId>
zookeeper
</artifactId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<!--日志整合-->
...
...
@@ -108,16 +112,6 @@
<groupId>
com.zhiwei
</groupId>
<artifactId>
push-log
</artifactId>
<version>
${push-log.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-1.2-api
</artifactId>
</exclusion>
</exclusions>
</dependency>
...
...
middleware-automatic-center-server/src/main/resources/log4j2.xml
View file @
8c710b57
...
...
@@ -4,7 +4,7 @@
<Configuration
status=
"WARN"
>
<Properties>
<!-- 配置日志文件输出目录 -->
<Property
name=
"LOG_HOME"
>
./log/
</Property>
<property
name=
"APP_NAME"
>
automatic-center-server
</property>
<property
name=
"APP_NAME"
>
middleware-
automatic-center-server
</property>
</Properties>
<Appenders>
<!-- 定义日志输出地 -->
...
...
middleware-automatic-center-son/pom.xml
View file @
8c710b57
...
...
@@ -10,6 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
middleware-automatic-center-son
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
...
...
@@ -93,6 +94,15 @@
<groupId>
org.apache.zookeeper
</groupId>
<artifactId>
zookeeper
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-1.2-api
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
</exclusion>
</exclusions>
</dependency>
...
...
@@ -172,6 +182,12 @@
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-high-level-client
</artifactId>
<version>
${es.version}
</version>
<exclusions>
<exclusion>
<artifactId>
log4j-api
</artifactId>
<groupId>
org.apache.logging.log4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
@@ -210,6 +226,10 @@
<groupId>
org.apache.zookeeper
</groupId>
<artifactId>
zookeeper
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--日志整合-->
...
...
@@ -217,16 +237,6 @@
<groupId>
com.zhiwei
</groupId>
<artifactId>
push-log
</artifactId>
<version>
${push-log.version}
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-1.2-api
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
middleware-automatic-center-son/src/main/resources/log4j2.xml
View file @
8c710b57
...
...
@@ -4,7 +4,7 @@
<Configuration
status=
"WARN"
>
<Properties>
<!-- 配置日志文件输出目录 -->
<Property
name=
"LOG_HOME"
>
./log/
</Property>
<property
name=
"APP_NAME"
>
automatic-center-server
</property>
<property
name=
"APP_NAME"
>
middleware-automatic-center-son
</property>
</Properties>
<Appenders>
<!-- 定义日志输出地 -->
...
...
pom.xml
View file @
8c710b57
...
...
@@ -52,27 +52,7 @@
</exclusions>
</dependency>
<!-- 日志依赖 -->
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-1.2-api -->
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-1.2-api
</artifactId>
<version>
${log4j.version}
</version>
<scope>
provided
</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
${slf4j.version}
</version>
<scope>
provided
</scope>
<exclusions>
<exclusion>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>
...
...
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