Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed Log4j appender config

  • Loading branch information...
commit f8f6ed138bbc80025f742801d3743bb62cb04141 1 parent eb670fe
@gastaldi gastaldi authored
Showing with 14 additions and 28 deletions.
  1. +14 −28 shell/src/main/resources/log4j.xml
View
42 shell/src/main/resources/log4j.xml
@@ -1,17 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?><!-- ~ JBoss, by Red Hat. ~ Copyright
- 2010, Red Hat, Inc., and individual contributors ~ by the @authors tag. See
- the copyright.txt in the distribution for a ~ full listing of individual
- contributors. ~ ~ This is free software; you can redistribute it and/or modify
- it ~ under the terms of the GNU Lesser General Public License as ~ published
- by the Free Software Foundation; either version 2.1 of ~ the License, or
- (at your option) any later version. ~ ~ This software is distributed in the
- hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the
- implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU ~ Lesser General Public License for more details. ~ ~ You should
- have received a copy of the GNU Lesser General Public ~ License along with
- this software; if not, write to the Free ~ Software Foundation, Inc., 51
- Franklin St, Fifth Floor, Boston, MA ~ 02110-1301 USA, or see the FSF site:
- http://www.fsf.org. -->
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 2012 Red Hat, Inc. and/or its affiliates.
+ ~
+ ~ Licensed under the Eclipse Public License version 1.0, available at
+ ~ http://www.eclipse.org/legal/epl-v10.html
+-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
@@ -23,26 +16,19 @@
<param name="Append" value="true" />
<param name="encoding" value="UTF-8" />
- <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
- <param name="FileNamePattern" value="/applogs/myportal/portal.%d.log.gz" />
- </rollingPolicy>
+ <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
+ <!-- The file to roll to, this is a fairly intelligent parameter, if the file
+ ends in .gz, it gzips it, based on the date stamp it rolls at that time,
+ default is yyyy-MM-dd, (rolls at midnight)
+ -->
+ <param name="FileNamePattern" value="${user.home}/.forge/runtime.%d.log.gz" />
+ </rollingPolicy>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n" />
</layout>
</appender>
- <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
- <param name="Target" value="System.out" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n" />
- </layout>
- <filter class="org.apache.log4j.varia.LevelRangeFilter">
- <param name="levelMin" value="DEBUG" />
- <param name="levelMax" value="FATAL" />
- </filter>
- </appender>
-
<!-- ############### Weld logging ################### -->
<category name="org.jboss">
Please sign in to comment.
Something went wrong with that request. Please try again.