root / src / log4j.properties @ 28
Historique | Voir | Annoter | Télécharger (2,06 ko)
1 |
# Licensed to the Apache Software Foundation (ASF) under one or more |
---|---|
2 |
# contributor license agreements. See the NOTICE file distributed with |
3 |
# this work for additional information regarding copyright ownership. |
4 |
# The ASF licenses this file to You under the Apache License, Version 2.0 |
5 |
# (the "License"); you may not use this file except in compliance with |
6 |
# the License. You may obtain a copy of the License at |
7 |
# |
8 |
# http://www.apache.org/licenses/LICENSE-2.0 |
9 |
# |
10 |
# Unless required by applicable law or agreed to in writing, software |
11 |
# distributed under the License is distributed on an "AS IS" BASIS, |
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 |
# See the License for the specific language governing permissions and |
14 |
# limitations under the License. |
15 |
|
16 |
|
17 |
# An example log4j configuration file that outputs to System.out. The |
18 |
# output information consists of relative time, log level, thread |
19 |
# name, logger name, nested diagnostic context and the message in that |
20 |
# order. |
21 |
|
22 |
# For the general syntax of property based configuration files see the |
23 |
# documenation of org.apache.log4j.PropertyConfigurator. |
24 |
|
25 |
log4j.rootLogger=INFO, A1, A2 |
26 |
log4j.appender.A2.append=false |
27 |
log4j.appender.A2=org.apache.log4j.RollingFileAppender |
28 |
log4j.appender.A2.File=${user.home}/gZFS.log |
29 |
|
30 |
# A1 is set to be a ConsoleAppender which outputs to System.out. |
31 |
log4j.appender.A1=org.apache.log4j.ConsoleAppender |
32 |
|
33 |
# A1 uses PatternLayout. |
34 |
log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
35 |
log4j.appender.A2.layout=org.apache.log4j.PatternLayout |
36 |
|
37 |
# The conversion pattern uses format specifiers. You might want to |
38 |
# change the pattern an watch the output format change. |
39 |
log4j.appender.A1.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n |
40 |
log4j.appender.A2.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n |
41 |
|
42 |
# In this example, we are not really interested in INNER loop or SWAP |
43 |
# messages. See the effects of uncommenting and changing the levels of |
44 |
# the following loggers. |
45 |
# log4j.logger.org.apache.log4j.examples.SortAlgo.INNER=WARN |
46 |
# log4j.logger.org.apache.log4j.examples.SortAlgo.SWAP=WARN |
47 |
|