This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. use log4j2
- Loading branch information
Showing
5 changed files
with
98 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This file is generated by the 'io.freefair.lombok' Gradle plugin | ||
config.stopBubbling = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
open module PrettyZoo.main { | ||
requires static lombok; | ||
requires javafx.fxml; | ||
requires javafx.graphics; | ||
requires javafx.controls; | ||
requires curator.framework; | ||
requires curator.recipes; | ||
requires curator.client; | ||
requires zookeeper; | ||
requires org.slf4j; | ||
requires log4j.slf4j.impl; | ||
requires org.apache.logging.log4j; | ||
requires org.apache.logging.log4j.core; | ||
requires com.fasterxml.jackson.core; | ||
requires com.fasterxml.jackson.databind; | ||
requires com.google.common; | ||
requires richtextfx; | ||
requires flowless; | ||
exports cc.cc1234.main; | ||
uses org.apache.logging.log4j.message.ThreadDumpMessage.ThreadInfoFactory; | ||
uses org.apache.logging.log4j.spi.Provider; | ||
uses org.apache.logging.log4j.util.PropertySource; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE xml> | ||
<configuration status="debug" monitorInterval="30"> | ||
<!-- 先定义所有的appender --> | ||
<appenders> | ||
<!-- 这个输出控制台的配置 --> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<!-- 控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch) --> | ||
<!-- <ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>--> | ||
<PatternLayout pattern="[%d{HH:mm:ss.SSS}] [%-5p] %l - %m%n"/> | ||
</Console> | ||
|
||
<!-- 这个会打印出所有的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档 --> | ||
<RollingFile name="RollingFile" fileName="${sys:user.home}/.prettyZoo/pretty.log" | ||
filePattern="${user.home}/.prettyZoo/prettyZoo.%d{yyyy-MM-dd}.log"> | ||
<PatternLayout pattern="[%d{yyyy-MM-dd 'at' HH:mm:ss z}] [%-5p] %l - %m%n"/> | ||
<TimeBasedTriggeringPolicy interval="1"/> | ||
</RollingFile> | ||
</appenders> | ||
|
||
<loggers> | ||
<logger name="cc.cc1234.main" level="DEBUG"></logger> | ||
<!-- 建立一个默认的root的logger --> | ||
<root level="INFO"> | ||
<appender-ref ref="RollingFile"/> | ||
<appender-ref ref="Console"/> | ||
</root> | ||
|
||
</loggers> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.