# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. 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 # # 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. For additional information regarding # copyright in this work, please see the NOTICE file in the top level # directory of this distribution. # # This is a bare bones Log4j setup that is present to catch any unexpected # errors that occur before Roller is able to init the logging system defined # in Roller's built-in properties file and customized (e.g., logfile location # specified) via your roller-custom.properties override file. # See the Roller install guide for more details on the standard logfile # configuration. # # This configuration uses ConsoleAppender by default so it will work on # all installations. If using Tomcat on *nix systems, or running Tomcat # as a Windows service, Console appender will write to the Tomcat # logs/catalina.out file. See http://stackoverflow.com/a/7752389 # # Otherwise, you may wish to customize below by specifying a log file # to write to. However, such a file will usually remain empty as Roller's # standard logging is activated quite early in the startup process. # log4j.rootLogger=ERROR, roller-startup log4j.appender.roller-startup=org.apache.log4j.ConsoleAppender #log4j.appender.roller-startup=org.apache.log4j.DailyRollingFileAppender #log4j.appender.roller-startup.File=/path/to/a/roller-startup.log log4j.appender.roller-startup.layout=org.apache.log4j.PatternLayout log4j.appender.roller-startup.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %C{1}:%M - %m%n