Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
secoo-log
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
secoo-log
Commits
5478d75a
Commit
5478d75a
authored
Sep 09, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update version to 1.1.0
remove log-starter
parent
6da511f5
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
257 deletions
+16
-257
pom.xml
pom.xml
+16
-53
pom.xml
secoo-log-starter/pom.xml
+0
-52
logback-spring.xml
secoo-log-starter/src/main/resources/logback-spring.xml
+0
-81
SpringBootStartTest.java
secoo-log-starter/src/test/java/SpringBootStartTest.java
+0
-23
application.yml
secoo-log-starter/src/test/resources/application.yml
+0
-7
pom.xml
secoo-log/pom.xml
+0
-41
logback.xml
src/main/resources/logback.xml
+0
-0
NonSpringBootStartTest.java
src/test/java/com/secoo/log/NonSpringBootStartTest.java
+0
-0
log.properties
src/test/resources/log.properties
+0
-0
No files found.
pom.xml
View file @
5478d75a
...
...
@@ -5,13 +5,9 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
secoo-log-parent
</artifactId>
<packaging>
pom
</packaging>
<version>
1.0.7.RELEASE
</version>
<modules>
<module>
secoo-log-starter
</module>
<module>
secoo-log
</module>
</modules>
<artifactId>
secoo-log
</artifactId>
<version>
1.1.0.RELEASE
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<logback.version>
1.2.3
</logback.version>
...
...
@@ -19,7 +15,6 @@
<janino.version>
3.0.6
</janino.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.slf4j
</groupId>
...
...
@@ -55,50 +50,17 @@
<version>
6.3.0.RELEASE
</version>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>
dev
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<ver_type>
-DEV-SNAPSHOT
</ver_type>
</properties>
<distributionManagement>
<repository>
<id>
secoo-dev
</id>
<name>
secoo-dev-repository
</name>
<url>
http://nexus.secoo.com:8081/nexus/content/repositories/secoo-hosted-dev/
</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>
test
</id>
<properties>
<ver_type>
-SNAPSHOT
</ver_type>
</properties>
<distributionManagement>
<repository>
<id>
secoo-test
</id>
<name>
secoo-test-repository
</name>
<url>
http://nexus.secoo.com:8081/nexus/content/repositories/secoo-hosted-test/
</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>
pro
</id>
<properties>
<ver_type>
.RELEASE
</ver_type>
</properties>
<distributionManagement>
<repository>
<id>
secoo-pro
</id>
<name>
secoo-pro-repository
</name>
<url>
http://nexus.secoo.com:8081/nexus/content/repositories/secoo-hosted-pro/
</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<distributionManagement>
<snapshotRepository>
<id>
secoo-dev
</id>
<name>
secoo-dev-repository
</name>
<url>
http://secoo-dev:secoo-dev@nexus.secoo.com:8081/nexus/content/repositories/secoo-hosted-dev/
</url>
</snapshotRepository>
<repository>
<id>
secoo-pro
</id>
<name>
secoo-pro-repository
</name>
<url>
http://secoo-pro:secoo-PRO@nexus.secoo.com:8081/nexus/content/repositories/secoo-hosted-pro/
</url>
</repository>
</distributionManagement>
</project>
\ No newline at end of file
secoo-log-starter/pom.xml
deleted
100644 → 0
View file @
6da511f5
<?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"
>
<parent>
<artifactId>
secoo-log-parent
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.7.RELEASE
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
secoo-log-starter
</artifactId>
<name>
${project.artifactId}
</name>
<properties>
<spring.boot.version>
2.0.5.RELEASE
</spring.boot.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</dependency>
<!-- 桥接slf4j -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
log4j-over-slf4j
</artifactId>
</dependency>
<!-- 打印skywalking tid插件-->
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-toolkit-logback-1.x
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
${spring.boot.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
secoo-log-starter/src/main/resources/logback-spring.xml
deleted
100644 → 0
View file @
6da511f5
<?xml version="1.0" encoding="UTF-8"?>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd"> -->
<configuration
scan=
"true"
scanPeriod=
"60 seconds"
debug=
"false"
>
<springProperty
scope=
"context"
name=
"logName"
source=
"spring.application.name"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"logLevel"
source=
"log.level"
defaultValue=
"info"
/>
<springProperty
scope=
"context"
name=
"LOG_PATH"
source=
"log.path"
defaultValue=
"/data/logs"
/>
<springProperty
scope=
"context"
name=
"MAX_FILE_SIZE"
source=
"log.max_file_size"
defaultValue=
"128MB"
/>
<springProperty
scope=
"context"
name=
"MAX_HISTORY"
source=
"log.max_history"
defaultValue=
"7"
/>
<springProperty
scope=
"context"
name=
"PATTERN"
source=
"log.pattern"
defaultValue=
"-|%d{yyyy-MM-dd HH:mm:ss.SSS}|%-5level|%X{tid}|%thread|%logger{36}.%M:%L-%msg%n"
/>
<property
name=
"LOG_DIR"
value=
"${LOG_PATH}/${logName}/%d{yyyyMMdd}"
/>
<property
name=
"CHARSET"
value=
"UTF-8"
/>
<jmxConfigurator/>
<appender
name=
"ERROR"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<level>
ERROR
</level>
<!-- 只记录error级别的日志 -->
<onMatch>
ACCEPT
</onMatch>
<onMismatch>
DENY
</onMismatch>
</filter>
<!-- 定义文件的名称 -->
<file>
${LOG_PATH}/${logName}/error.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<FileNamePattern>
${LOG_DIR}/err_${logName}%i.log
</FileNamePattern>
<MaxHistory>
${MAX_HISTORY}
</MaxHistory>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
${MAX_FILE_SIZE}
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<layout
class=
"org.apache.skywalking.apm.toolkit.log.logback.v1.x.mdc.TraceIdMDCPatternLogbackLayout"
>
<Pattern>
${PATTERN}
</Pattern>
</layout>
</appender>
<appender
name=
"APP"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 定义文件的名称 -->
<file>
${LOG_PATH}/${logName}/app.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<FileNamePattern>
${LOG_DIR}/all_${logName}%i.log
</FileNamePattern>
<MaxHistory>
${MAX_HISTORY}
</MaxHistory>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
${MAX_FILE_SIZE}
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<layout
class=
"org.apache.skywalking.apm.toolkit.log.logback.v1.x.mdc.TraceIdMDCPatternLogbackLayout"
>
<pattern>
${PATTERN}
</pattern>
</layout>
</appender>
<appender
name=
"ASYN_APP"
class=
"ch.qos.logback.classic.AsyncAppender"
>
<appender-ref
ref=
"APP"
/>
<queueSize>
1024
</queueSize>
<neverBlock>
true
</neverBlock>
<includeCallerData>
true
</includeCallerData>
</appender>
<appender
name=
"ASYN_ERROR"
class=
"ch.qos.logback.classic.AsyncAppender"
>
<appender-ref
ref=
"ERROR"
/>
<queueSize>
256
</queueSize>
<neverBlock>
true
</neverBlock>
<includeCallerData>
true
</includeCallerData>
</appender>
<logger
name=
"app"
level=
"${logLevel}"
>
<appender-ref
ref=
"ASYN_APP"
/>
</logger>
<logger
name=
"error"
level=
"${logLevel}"
>
<appender-ref
ref=
"ASYN_ERROR"
/>
</logger>
<!-- 日志排除 -->
<logger
name=
"org.logicalcobwebs.proxool"
level=
"error"
/>
<!--统一日志输出级别,其他appender中如果有高于此处等级设置的也会被输出 -->
<root
level=
"${logLevel}"
>
<appender-ref
ref=
"ASYN_APP"
/>
<appender-ref
ref=
"ASYN_ERROR"
/>
</root>
</configuration>
\ No newline at end of file
secoo-log-starter/src/test/java/SpringBootStartTest.java
deleted
100644 → 0
View file @
6da511f5
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
/**
* spring boot start log test
*
* @author zhanghao
* @date 2019-06-2714:29
*/
@SpringBootApplication
public
class
SpringBootStartTest
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
SpringBootStartTest
.
class
);
public
static
void
main
(
String
[]
args
)
{
// SpringApplication.run(SpringBootStartTest.class, args);
logger
.
info
(
"Started Application SpringBootApplicationTest, args={}"
,
args
);
}
}
secoo-log-starter/src/test/resources/application.yml
deleted
100644 → 0
View file @
6da511f5
server
:
port
:
8080
spring
:
application
:
name
:
SpringBootApplicationTest
\ No newline at end of file
secoo-log/pom.xml
deleted
100644 → 0
View file @
6da511f5
<?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"
>
<parent>
<artifactId>
secoo-log-parent
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.7.RELEASE
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
secoo-log
</artifactId>
<name>
${project.artifactId}
</name>
<dependencies>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</dependency>
<!-- 桥接slf4j -->
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
jcl-over-slf4j
</artifactId>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
log4j-over-slf4j
</artifactId>
</dependency>
<!-- 打印skywalking tid插件-->
<dependency>
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-toolkit-logback-1.x
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
s
ecoo-log/s
rc/main/resources/logback.xml
→
src/main/resources/logback.xml
View file @
5478d75a
File moved
s
ecoo-log/s
rc/test/java/com/secoo/log/NonSpringBootStartTest.java
→
src/test/java/com/secoo/log/NonSpringBootStartTest.java
View file @
5478d75a
File moved
s
ecoo-log/s
rc/test/resources/log.properties
→
src/test/resources/log.properties
View file @
5478d75a
File moved
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