@@ -87,13 +87,6 @@ <h2 class="doAnchor" name="auto_configuration">Configuration in
87
87
href ="../faq.html#configFileLocation "> in the
88
88
classpath</ a > .</ p > </ li >
89
89
90
- < li >
91
- < p > If no such file is found, logback tries to find a file called
92
- < em > logback.groovy</ em > < a
93
- href ="../faq.html#configFileLocation "> in the
94
- classpath</ a > .</ p >
95
- </ li >
96
-
97
90
98
91
< li > < p > If no such file is found, it checks for the file
99
92
< em > logback.xml</ em > < a
@@ -129,7 +122,11 @@ <h2 class="doAnchor" name="auto_configuration">Configuration in
129
122
configuration file.
130
123
</ p >
131
124
132
-
125
+ < p > < span class ="label notice "> Groovy</ span > Given that Groovy is a
126
+ full-fledged language, we have dropped support for
127
+ < em > logback.groovy</ em > in order to protect the innocent.
128
+ </ p >
129
+
133
130
< p > If you are using Maven and if you place the
134
131
< em > logback-test.xml</ em > under the < em > src/test/resources</ em >
135
132
folder, Maven will ensure that it won't be included in the
@@ -259,8 +256,6 @@ <h3>Automatic configuration with <em>logback-test.xml</em> or
259
256
260
257
< p class ="example "> Example: Basic configuration file
261
258
(logback-examples/src/main/resources/chapters/configuration/sample0.xml)</ p >
262
- < span class ="asGroovy " onclick ="return asGroovy('sample0'); "> View as .groovy</ span >
263
-
264
259
265
260
< pre id ="sample0 " class ="prettyprint source "> <configuration>
266
261
@@ -355,7 +350,7 @@ <h4 class="doAnchor" name="dumpingStatusData">Status data</h4>
355
350
356
351
< p class ="example "> Example: Registering a status listener
357
352
(logback-examples/src/main/resources/chapters/configuration/onConsoleStatusListener.xml)</ p >
358
- < span class =" asGroovy " onclick =" return asGroovy('onConsoleStatusListener'); " > View as .groovy </ span >
353
+
359
354
< pre id ="onConsoleStatusListener " class ="prettyprint source "> <configuration>
360
355
<-- Recommendation: place status listeners towards the the top of the configuration file -->
361
356
< b > <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> </ b >
@@ -407,7 +402,6 @@ <h4>Shorthand</h4>
407
402
< p class ="example "> Example: Basic configuration file using debug
408
403
mode
409
404
(logback-examples/src/main/resources/chapters/configuration/sample1.xml)</ p >
410
- < span class ="asGroovy " onclick ="return asGroovy('sample1'); "> View as .groovy</ span >
411
405
412
406
< pre id ="sample1 " class ="prettyprint source ">
413
407
<configuration < span class ="bold "> debug="true"</ span > >
@@ -580,7 +574,6 @@ <h3 class="doAnchor" name="autoScan">Automatically reloading
580
574
file and automatic re-configuration
581
575
(logback-examples/src/main/resources/chapters/configuration/scan1.xml)</ p >
582
576
583
- < span class ="asGroovy " onclick ="return asGroovy('scan1'); "> View as .groovy</ span >
584
577
< pre id ="scan1 " class ="prettyprint source ">
585
578
<configuration < b > scan="true"</ b > >
586
579
...
@@ -596,7 +589,7 @@ <h3 class="doAnchor" name="autoScan">Automatically reloading
596
589
597
590
< p class ="example "> Example: Specifying a different scanning period
598
591
(logback-examples/src/main/resources/chapters/configuration/scan2.xml)</ p >
599
- < span class =" asGroovy " onclick =" return asGroovy('scan2'); " > View as .groovy </ span >
592
+
600
593
< pre id ="scan2 " class ="prettyprint source ">
601
594
<configuration scan="true" < b > scanPeriod="30 seconds"</ b > >
602
595
...
@@ -978,7 +971,6 @@ <h4>Example</h4>
978
971
< p class ="example "> Example: Setting the level of a logger
979
972
(logback-examples/src/main/resources/chapters/configuration/sample2.xml)</ p >
980
973
981
- < span class ="asGroovy " onclick ="return asGroovy('sample2'); "> View as .groovy</ span >
982
974
< pre id ="sample2 " class ="prettyprint source "> <configuration>
983
975
984
976
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1019,7 +1011,6 @@ <h4>Example</h4>
1019
1011
< p class ="example "> Example: Setting the level of multiple loggers
1020
1012
(logback-examples/src/main/resources/chapters/configuration/sample3.xml)</ p >
1021
1013
1022
- < span class ="asGroovy " onclick ="return asGroovy('sample3'); "> View as .groovy</ span >
1023
1014
< pre id ="sample3 " class ="source prettyprint "> <configuration>
1024
1015
1025
1016
<appender name="STDOUT"
@@ -1100,7 +1091,7 @@ <h4>Example</h4>
1100
1091
1101
1092
< p class ="example "> Example: Logger level sample
1102
1093
(logback-examples/src/main/resources/chapters/configuration/sample4.xml)</ p >
1103
- < span class =" asGroovy " onclick =" return asGroovy('sample4'); " > View as .groovy </ span >
1094
+
1104
1095
< pre id ="sample4 " class ="prettyprint source "> <configuration>
1105
1096
1106
1097
<appender name="STDOUT"
@@ -1226,7 +1217,6 @@ <h4 class="doAnchor" name="configuringAppenders">Configuring
1226
1217
< p class ="example "> Example: Multiple loggers
1227
1218
(logback-examples/src/main/resources/chapters/configuration/multiple.xml)</ p >
1228
1219
1229
- < span class ="asGroovy " onclick ="return asGroovy('multiple'); "> View as .groovy</ span >
1230
1220
< pre id ="multiple " class ="prettyprint source "> <configuration>
1231
1221
1232
1222
<appender name="< b > FILE</ b > " class="ch.qos.logback.core.FileAppender">
@@ -1281,7 +1271,6 @@ <h4 class="doAnchor" name="cumulative">Appenders accumulate
1281
1271
< p class ="example "> Example: Duplicate appender
1282
1272
(logback-examples/src/main/resources/chapters/configuration/duplicate.xml)</ p >
1283
1273
1284
- < span class ="asGroovy " onclick ="return asGroovy('duplicate'); "> View as .groovy</ span >
1285
1274
< pre id ="duplicate " class ="prettyprint source "> <configuration>
1286
1275
1287
1276
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1330,7 +1319,7 @@ <h4 class="doAnchor" name="cumulative">Appenders accumulate
1330
1319
1331
1320
< p class ="example "> Example: Multiple appender
1332
1321
(logback-examples/src/main/resources/chapters/configuration/restricted.xml)</ p >
1333
- < span class =" asGroovy " onclick =" return asGroovy('restricted'); " > View as .groovy </ span >
1322
+
1334
1323
< pre id ="restricted " class ="prettyprint source "> <configuration>
1335
1324
1336
1325
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1374,7 +1363,6 @@ <h4 class="doAnchor" name="overrridingCumulativity">Overriding the
1374
1363
< p class ="example "> Example: Additivity flag
1375
1364
(logback-examples/src/main/resources/chapters/configuration/additivityFlag.xml)</ p >
1376
1365
1377
- < span class ="asGroovy " onclick ="return asGroovy('additivityFlag'); "> View as .groovy</ span >
1378
1366
< pre id ="additivityFlag " class ="prettyprint source "> <configuration>
1379
1367
1380
1368
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1430,7 +1418,6 @@ <h3 class="doAnchor" name="contextName">Setting the context
1430
1418
< p class ="example "> Example: Set the context name and display it
1431
1419
(logback-examples/src/main/resources/chapters/configuration/contextName.xml)</ p >
1432
1420
1433
- < span class ="asGroovy " onclick ="return asGroovy('contextName'); "> View as .groovy</ span >
1434
1421
< pre id ="contextName " class ="prettyprint source "> <configuration>
1435
1422
< b > <contextName> myAppName</contextName> </ b >
1436
1423
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1508,7 +1495,6 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
1508
1495
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution1.xml)
1509
1496
</ p >
1510
1497
1511
- < span class ="asGroovy " onclick ="return asGroovy('variableSubstitution1'); "> View as .groovy</ span >
1512
1498
< pre id ="variableSubstitution1 " class ="prettyprint source "> <configuration>
1513
1499
1514
1500
< b > <property name="USER_HOME" value="/home/sebastien" /> </ b >
@@ -1536,7 +1522,7 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
1536
1522
< p class ="example "> Example: System Variable substitution
1537
1523
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution2.xml)
1538
1524
</ p >
1539
- < span class =" asGroovy " onclick =" return asGroovy('variableSubstitution2'); " > View as .groovy </ span >
1525
+
1540
1526
< pre id ="variableSubstitution2 " class ="prettyprint source "> <configuration>
1541
1527
1542
1528
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1561,7 +1547,7 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
1561
1547
separate file
1562
1548
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution3.xml)
1563
1549
</ p >
1564
- < span class =" asGroovy " onclick =" return asGroovy('variableSubstitution3'); " > View as .groovy </ span >
1550
+
1565
1551
< pre id ="variableSubstitution3 " class ="prettyprint source "> <configuration>
1566
1552
1567
1553
< b > <property file="src/main/java/chapters/configuration/variables1.properties" /> </ b >
@@ -1662,8 +1648,6 @@ <h4 class="doAnchor" name="scopes">Scopes</h4>
1662
1648
(logback-examples/src/main/resources/chapters/configuration/contextScopedVariable.xml)
1663
1649
</ p >
1664
1650
1665
- < span class ="asGroovy " onclick ="return
1666
- asGroovy('contextScopedVariable'); "> View as .groovy</ span >
1667
1651
< pre id ="contextScopedVariable " class ="prettyprint source "> <configuration>
1668
1652
1669
1653
<property < b class ="big "> scope="context"</ b > name="nodeId" value="firstNode" />
0 commit comments