]> git.somenet.org - pub/jan/sbc.git/blob - src/main/resources/logback.xml
First running MozartSpaces communication: PizzeriaGUI writes free tables to space...
[pub/jan/sbc.git] / src / main / resources / logback.xml
1 <configuration scan="false" scanPeriod="60 seconds">\r
2 \r
3         <!-- \r
4                 The logback configuration manual is online at\r
5                 http://logback.qos.ch/manual/configuration.html.\r
6                 Logback tries to read a configuration file named logback.groovy,\r
7                 logback-test.xml or logback.xml (in that order) from the classpath.\r
8                 Use -Dlogback.configurationFile=/path/to/config.xml to set a different\r
9                 path or filename.\r
10         -->\r
11 \r
12         <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">\r
13                 <!--\r
14                         encoders are assigned the type\r
15                         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default\r
16                 -->\r
17                 <encoder>\r
18                         <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>\r
19                         <!-- \r
20                                 The pattern layout configuration is explained at\r
21                             http://logback.qos.ch/manual/layouts.html#ClassicPatternLayout\r
22                          -->\r
23                 </encoder>\r
24         </appender>\r
25 \r
26         <!--  \r
27         <appender name="file" class="ch.qos.logback.core.FileAppender">\r
28                 <append>false</append>\r
29                 <file>MozartSpaces.log</file>\r
30         <encoder>\r
31                 <pattern>%date %-5level [%thread] %logger{10} - %msg%n</pattern>\r
32         </encoder>\r
33         </appender>\r
34         -->\r
35 \r
36         <!-- for further appenders see http://logback.qos.ch/manual/appenders.html -->\r
37         \r
38         \r
39         <root level="INFO">\r
40                 <appender-ref ref="stdout"/>\r
41                 <!-- appender-ref ref="file"/ -->               \r
42         </root>\r
43         \r
44         <!-- \r
45                 Log levels and their ordering: TRACE < DEBUG < INFO < WARN < ERROR\r
46                 Additional values for "level" in the configuration:\r
47                 * ALL, OFF\r
48                 * INHERITED or NULL (not for root)\r
49         -->\r
50         \r
51         <!-- \r
52         <logger name="org.mozartspaces.core" level="TRACE"/>\r
53          -->\r
54          \r
55         <!-- \r
56                 Logging with multiple MozartSpaces instances on the same machine:\r
57                 \r
58                 To have separate logback configuration files for different MozartSpaces\r
59                 instances you can set the configuration file name with a system property:\r
60                 java -Dlogback.configurationFile=/path/to/config.xml MozartSpacesApp\r
61                 \r
62                 To have separated log files for different MozartSpaces instances (with\r
63                 the same logback configuration) you can use variable substitution in the\r
64                 configuration file, e.g., in the FileAppender configuration section. See\r
65                 http://logback.qos.ch/manual/joran.html#variableSubstitution for details.               \r
66          -->\r
67 </configuration>\r