forked from openmessaging/dledger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update log4j v1 to log4j v2 (openmessaging#156)
1 parent
b92a6c2
commit 4595c40
Showing
5 changed files
with
95 additions
and
54 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 was deleted.
Oops, something went wrong.
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,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright 2017-2022 The DLedger Authors. | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<Configuration> | ||
<Appenders> | ||
<Console name="stdout" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c{1}:%L - %m%n"/> | ||
</Console> | ||
<RollingFile name="dledger" fileName="${sys:user.home}/logs/dledger/dledger.log" | ||
filePattern="${sys:user.home}/logs/dledger/dledger.log.gz"> | ||
<PatternLayout> | ||
<Pattern>%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c{1}:%L - %m%n</Pattern> | ||
</PatternLayout> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="500 MB" /> | ||
</Policies> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingFile> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="RocketmqRemoting" level="error" additivity="false"> | ||
<AppenderRef ref="dledger"/> | ||
</Logger> | ||
<Logger name="io.openmessaging.storage.dledger.cmdline" level="info" additivity="false"> | ||
<AppenderRef ref="stdout"/> | ||
</Logger> | ||
<Root level="info"> | ||
<AppenderRef ref="dledger"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright 2017-2022 The DLedger Authors. | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<Configuration> | ||
<Appenders> | ||
<Console name="stdout" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c{1}:%L - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="RocketmqRemoting" level="off" additivity="false"> | ||
<AppenderRef ref="stdout"/> | ||
</Logger> | ||
<Root level="off"> | ||
<AppenderRef ref="stdout"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |