Skip to content

Commit

Permalink
FC-286 - To Apache Log4j 2
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnmckinney committed Jul 1, 2021
1 parent 41899dc commit ef50579
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 56 deletions.
56 changes: 0 additions & 56 deletions src/main/resources/log4j.xml

This file was deleted.

40 changes: 40 additions & 0 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* https://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>
<File name="file" fileName="fortress.log" append="true" maxFileSize="10MB" maxBackupIndex="10">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:sss} %-5p %c{1}:%L - %m%n"/>
</File>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:sss} %-5p %c{1}:%L - %m%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="console"/>
</Root>
<logger name="org.apache.directory.fortress.rest.FortressInterceptor" level="INFO">
<AppenderRef ref="console"/>
</logger>
<logger name="org.apache.directory.fortress.core" level="INFO">
<AppenderRef ref="console"/>
</logger>
</Loggers>
</Configuration>

0 comments on commit ef50579

Please sign in to comment.