Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
润土的好友猹
SkyWalking
提交
167b92f6
S
SkyWalking
项目概览
润土的好友猹
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
167b92f6
编写于
12月 31, 2015
作者:
Z
zhangxin10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传pom.xml文件以及测试代码
上级
2c90eb4e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
153 addition
and
0 deletion
+153
-0
skywalking-log/example/example.iml
skywalking-log/example/example.iml
+23
-0
skywalking-log/log4j-1.x-plugin/pom.xml
skywalking-log/log4j-1.x-plugin/pom.xml
+39
-0
skywalking-log/log4j-1.x-plugin/src/test/java/com/ai/TestLog.java
...ng-log/log4j-1.x-plugin/src/test/java/com/ai/TestLog.java
+10
-0
skywalking-log/log4j-1.x-plugin/src/test/resources/log4j.properties
...-log/log4j-1.x-plugin/src/test/resources/log4j.properties
+13
-0
skywalking-log/log4j-2.x-plugin/pom.xml
skywalking-log/log4j-2.x-plugin/pom.xml
+38
-0
skywalking-log/pom.xml
skywalking-log/pom.xml
+30
-0
未找到文件。
skywalking-log/example/example.iml
0 → 100644
浏览文件 @
167b92f6
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_5"
inherit-compiler-output=
"false"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: junit:junit:3.8.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: log4j:log4j:1.2.17"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.apache.logging.log4j:log4j-core:2.4.1"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.4.1"
level=
"project"
/>
<orderEntry
type=
"module"
module-name=
"log4j-2.x-plugin"
/>
<orderEntry
type=
"module"
module-name=
"skywalking-api"
/>
<orderEntry
type=
"module"
module-name=
"skywalking-protocol"
/>
<orderEntry
type=
"module"
module-name=
"skywalking-log4j-1.x-plugin"
/>
</component>
</module>
\ No newline at end of file
skywalking-log/log4j-1.x-plugin/pom.xml
0 → 100644
浏览文件 @
167b92f6
<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>
skywalking-log
</artifactId>
<groupId>
com.ai.cloud
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
skywalking-log4j-1.x-plugin
</artifactId>
<packaging>
jar
</packaging>
<name>
log4j-1.x-plugin
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
3.8.1
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
<version>
1.2.17
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</project>
skywalking-log/log4j-1.x-plugin/src/test/java/com/ai/TestLog.java
0 → 100644
浏览文件 @
167b92f6
package
com.ai
;
import
org.apache.log4j.Logger
;
public
class
TestLog
{
public
static
void
main
(
String
[]
args
)
{
Logger
logger
=
Logger
.
getLogger
(
TestLog
.
class
);
logger
.
info
(
"TTTTTTTTTTTTTTTTTTTTTTTT"
);
}
}
skywalking-log/log4j-1.x-plugin/src/test/resources/log4j.properties
0 → 100644
浏览文件 @
167b92f6
log4j.rootLogger
=
INFO, A1
#log4j.appender.A1=org.apache.log4j.FileAppender
#log4j.appender.A1.File=${catalina.base}/logs/mvno_crm_all.log
#log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss.SSS} %c %n[%p] %n%m%n
log4j.appender.A1
=
org.apache.log4j.ConsoleAppender
#log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout
=
com.ai.cloud.skywalking.plugin.log.log4j.v1.x.TraceIdPatternLayout
log4j.appender.A1.layout.ConversionPattern
=
[%x] %-d{yyyy-MM-dd HH:mm:ss.SSS} %c %n[%p] %n%m%n
log4j.logger.com.ailk
=
DEBUG
log4j.logger.org.springframework
=
DEBUG
\ No newline at end of file
skywalking-log/log4j-2.x-plugin/pom.xml
0 → 100644
浏览文件 @
167b92f6
<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>
skywalking-log
</artifactId>
<groupId>
com.ai.cloud
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
skywalking-log4j-2.x-plugin
</artifactId>
<packaging>
jar
</packaging>
<name>
log4j-2.x-plugin
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
3.8.1
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
<version>
2.2
</version>
</dependency>
</dependencies>
</project>
skywalking-log/pom.xml
0 → 100644
浏览文件 @
167b92f6
<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.ai.cloud
</groupId>
<artifactId>
skywalking-log
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<modules>
<module>
log4j-1.x-plugin
</module>
<module>
log4j-2.x-plugin
</module>
<module>
example
</module>
</modules>
<packaging>
pom
</packaging>
<name>
skywalking-log
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
3.8.1
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录