1 Star 0 Fork 0

Dobukle / log-component-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 5.71 KB
一键复制 编辑 原始数据 按行查看 历史
Dobukle 提交于 2018-12-24 17:51 . 日志log4j2
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>log-component-demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>log-component-demo</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<kotlin.version>1.2.71</kotlin.version>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.47</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!--排除logback,统一使用log4j2-->
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--日志组件-->
<dependency>
<groupId>com.sharecharger.tech</groupId>
<artifactId>log-audit-component</artifactId>
<version>1.8-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>logback-core</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>logback-access</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.20</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.name}</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!--为了spring boot的yml和properties文件能够使用maven变量替换,使用${}占位符-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>utf-8</encoding>
<useDefaultDelimiters>true</useDefaultDelimiters>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>本地环境</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<_environment>local</_environment>
<!--是否开启阿里云日志-->
<_log.aliyun.enable>false</_log.aliyun.enable>
</properties>
</profile>
<profile>
<id>开发环境</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<_environment>develop</_environment>
<!--是否开启阿里云日志-->
<_log.aliyun.enable>false</_log.aliyun.enable>
</properties>
</profile>
<profile>
<id>测试环境</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<_environment>test</_environment>
</properties>
</profile>
<profile>
<id>压测环境</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<_environment>stress</_environment>
<!--是否开启阿里云日志-->
<_log.aliyun.enable>false</_log.aliyun.enable>
</properties>
</profile>
<profile>
<id>预发布环境</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<_environment>pre-release</_environment>
</properties>
</profile>
<profile>
<id>生产环境</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<_environment>release</_environment>
<!--是否开启阿里云日志-->
<_log.aliyun.enable>true</_log.aliyun.enable>
</properties>
</profile>
</profiles>
</project>
1
https://gitee.com/CaiGaoQing/log-component-demo.git
git@gitee.com:CaiGaoQing/log-component-demo.git
CaiGaoQing
log-component-demo
log-component-demo
master

搜索帮助