Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
13da7e80
提交
13da7e80
authored
3月 28, 2020
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update rm
上级
26659331
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
48 行增加
和
5 行删除
+48
-5
pom.xml
...b-executor-samples/xxl-job-executor-sample-spring/pom.xml
+10
-3
logback.xml
...job-executor-sample-spring/src/main/resources/logback.xml
+30
-0
web.xml
...ob-executor-sample-spring/src/main/webapp/WEB-INF/web.xml
+8
-2
没有找到文件。
xxl-job-executor-samples/xxl-job-executor-sample-spring/pom.xml
浏览文件 @
13da7e80
...
...
@@ -21,12 +21,19 @@
<version>
${spring.version}
</version>
</dependency>
<!-- slf4j -->
<!-- Logback -->
<dependency>
<groupId>
org.logback-extensions
</groupId>
<artifactId>
logback-ext-spring
</artifactId>
<version>
0.1.4
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
${slf4j-api.version}
</version>
<artifactId>
jcl-over-slf4j
</artifactId>
<version>
1.7.25
</version>
</dependency>
<!-- xxl-job-core -->
<dependency>
...
...
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/logback.xml
0 → 100644
浏览文件 @
13da7e80
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"true"
scanPeriod=
"1 seconds"
>
<contextName>
logback
</contextName>
<property
name=
"log.path"
value=
"/data/applogs/xxl-job/xxl-job-executor-sample-springboot.log"
/>
<appender
name=
"console"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<appender
name=
"file"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${log.path}
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${log.path}.%d{yyyy-MM-dd}.zip
</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>
%date %level [%thread] %logger{36} [%file : %line] %msg%n
</pattern>
</encoder>
</appender>
<root
level=
"info"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"file"
/>
</root>
</configuration>
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/webapp/WEB-INF/web.xml
浏览文件 @
13da7e80
...
...
@@ -16,14 +16,20 @@
<param-value>
classpath*:applicationcontext-*.xml
</param-value>
</context-param>
<!-- logback -->
<context-param>
<param-name>
logbackConfigLocation
</param-name>
<param-value>
classpath:logback.xml
</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.util.Log4j
ConfigListener
</listener-class>
<listener-class>
ch.qos.logback.ext.spring.web.Logback
ConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
</welcome-file-list>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论