Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (55 sloc) 2.12 KB
# Copyright (c) 2012, Max Mikhanosha. All rights reserved.
#
# This file is licensed 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.
# defaults
#
# Used it testing log4cl vs log4j speed
#
speed.file=/dev/null
root.level=DEBUG
root.appender=speed
# Log4j configuration file.
log4j.rootCategory=${root.level}, ${root.appender}
# Available levels are DEBUG, INFO, WARN, ERROR, FATAL
log4j.appender.SIMPLE=org.apache.log4j.ConsoleAppender
log4j.appender.SIMPLE.layout=org.apache.log4j.SimpleLayout
#
log4j.appender.speed=org.apache.log4j.FileAppender
log4j.appender.speed.file=${speed.file}
log4j.appender.speed.layout=org.apache.log4j.SimpleLayout
log4j.appender.speed.bufferedIO=true
log4j.appender.speed.encoding=latin1
#
# A1 is a ConsoleAppender
#
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#log4j.appender.A1.layout.ConversionPattern=[%d{MM/dd/yyyy HH:mm:ss}] %-5p %c %m%n
log4j.appender.A1.layout.ConversionPattern=%-5p %c %m%n
#
# A2 is a DailyRollingFileAppender
#
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=logs/logfile.log
log4j.appender.A2.datePattern='.'yyyy-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
#
# A3 is a UDPAppender for sending logs as broadcast UDP packets
#
log4j.appender.A3=org.apache.log4j.net.UDPAppender
log4j.appender.A3.remoteHost=192.168.15.255
log4j.appender.A3.port=8881
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
#log4j.category.cat1=DEBUG
Something went wrong with that request. Please try again.