Skip to content

Commit a612f62

Browse files
committed
remove documentation on Groovy
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
1 parent 6288e3b commit a612f62

File tree

9 files changed

+68
-89
lines changed

9 files changed

+68
-89
lines changed

logback-site/src/site/pages/manual/appenders.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,6 @@ <h3 class="doAnchor" name="SizeAndTimeBasedRollingPolicy">Size and
12531253
<code>SizeAndTimeBasedFNATP</code>
12541254
(logback-examples/src/main/resources/chapters/appenders/conf/logback-sizeAndTime.xml)</p>
12551255

1256-
<span class="asGroovy" onclick="return asGroovy('logback-sizeAndTime');">View as .groovy</span>
12571256
<pre id="logback-sizeAndTime" class="prettyprint source">&lt;configuration>
12581257
&lt;appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
12591258
&lt;file>mylog.txt&lt;/file>

logback-site/src/site/pages/manual/configuration.html

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ <h2 class="doAnchor" name="auto_configuration">Configuration in
8787
href="../faq.html#configFileLocation">in the
8888
classpath</a>.</p> </li>
8989

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-
9790

9891
<li><p>If no such file is found, it checks for the file
9992
<em>logback.xml</em> <a
@@ -129,7 +122,11 @@ <h2 class="doAnchor" name="auto_configuration">Configuration in
129122
configuration file.
130123
</p>
131124

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+
133130
<p>If you are using Maven and if you place the
134131
<em>logback-test.xml</em> under the <em>src/test/resources</em>
135132
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
259256

260257
<p class="example">Example: Basic configuration file
261258
(logback-examples/src/main/resources/chapters/configuration/sample0.xml)</p>
262-
<span class="asGroovy" onclick="return asGroovy('sample0');">View as .groovy</span>
263-
264259

265260
<pre id="sample0" class="prettyprint source">&lt;configuration>
266261

@@ -355,7 +350,7 @@ <h4 class="doAnchor" name="dumpingStatusData">Status data</h4>
355350

356351
<p class="example">Example: Registering a status listener
357352
(logback-examples/src/main/resources/chapters/configuration/onConsoleStatusListener.xml)</p>
358-
<span class="asGroovy" onclick="return asGroovy('onConsoleStatusListener');">View as .groovy</span>
353+
359354
<pre id="onConsoleStatusListener" class="prettyprint source">&lt;configuration>
360355
&lt;-- Recommendation: place status listeners towards the the top of the configuration file --&gt;
361356
<b>&lt;statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /></b>
@@ -407,7 +402,6 @@ <h4>Shorthand</h4>
407402
<p class="example">Example: Basic configuration file using debug
408403
mode
409404
(logback-examples/src/main/resources/chapters/configuration/sample1.xml)</p>
410-
<span class="asGroovy" onclick="return asGroovy('sample1');">View as .groovy</span>
411405

412406
<pre id="sample1" class="prettyprint source">
413407
&lt;configuration <span class="bold">debug="true"</span>>
@@ -580,7 +574,6 @@ <h3 class="doAnchor" name="autoScan">Automatically reloading
580574
file and automatic re-configuration
581575
(logback-examples/src/main/resources/chapters/configuration/scan1.xml)</p>
582576

583-
<span class="asGroovy" onclick="return asGroovy('scan1');">View as .groovy</span>
584577
<pre id="scan1" class="prettyprint source">
585578
&lt;configuration <b>scan="true"</b>>
586579
...
@@ -596,7 +589,7 @@ <h3 class="doAnchor" name="autoScan">Automatically reloading
596589

597590
<p class="example">Example: Specifying a different scanning period
598591
(logback-examples/src/main/resources/chapters/configuration/scan2.xml)</p>
599-
<span class="asGroovy" onclick="return asGroovy('scan2');">View as .groovy</span>
592+
600593
<pre id="scan2" class="prettyprint source">
601594
&lt;configuration scan="true" <b>scanPeriod="30 seconds"</b> >
602595
...
@@ -978,7 +971,6 @@ <h4>Example</h4>
978971
<p class="example">Example: Setting the level of a logger
979972
(logback-examples/src/main/resources/chapters/configuration/sample2.xml)</p>
980973

981-
<span class="asGroovy" onclick="return asGroovy('sample2');">View as .groovy</span>
982974
<pre id="sample2" class="prettyprint source">&lt;configuration>
983975

984976
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1019,7 +1011,6 @@ <h4>Example</h4>
10191011
<p class="example">Example: Setting the level of multiple loggers
10201012
(logback-examples/src/main/resources/chapters/configuration/sample3.xml)</p>
10211013

1022-
<span class="asGroovy" onclick="return asGroovy('sample3');">View as .groovy</span>
10231014
<pre id="sample3" class="source prettyprint">&lt;configuration>
10241015

10251016
&lt;appender name="STDOUT"
@@ -1100,7 +1091,7 @@ <h4>Example</h4>
11001091

11011092
<p class="example">Example: Logger level sample
11021093
(logback-examples/src/main/resources/chapters/configuration/sample4.xml)</p>
1103-
<span class="asGroovy" onclick="return asGroovy('sample4');">View as .groovy</span>
1094+
11041095
<pre id="sample4" class="prettyprint source">&lt;configuration>
11051096

11061097
&lt;appender name="STDOUT"
@@ -1226,7 +1217,6 @@ <h4 class="doAnchor" name="configuringAppenders">Configuring
12261217
<p class="example">Example: Multiple loggers
12271218
(logback-examples/src/main/resources/chapters/configuration/multiple.xml)</p>
12281219

1229-
<span class="asGroovy" onclick="return asGroovy('multiple');">View as .groovy</span>
12301220
<pre id="multiple" class="prettyprint source">&lt;configuration>
12311221

12321222
&lt;appender name="<b>FILE</b>" class="ch.qos.logback.core.FileAppender">
@@ -1281,7 +1271,6 @@ <h4 class="doAnchor" name="cumulative">Appenders accumulate
12811271
<p class="example">Example: Duplicate appender
12821272
(logback-examples/src/main/resources/chapters/configuration/duplicate.xml)</p>
12831273

1284-
<span class="asGroovy" onclick="return asGroovy('duplicate');">View as .groovy</span>
12851274
<pre id="duplicate" class="prettyprint source">&lt;configuration>
12861275

12871276
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1330,7 +1319,7 @@ <h4 class="doAnchor" name="cumulative">Appenders accumulate
13301319

13311320
<p class="example">Example: Multiple appender
13321321
(logback-examples/src/main/resources/chapters/configuration/restricted.xml)</p>
1333-
<span class="asGroovy" onclick="return asGroovy('restricted');">View as .groovy</span>
1322+
13341323
<pre id="restricted" class="prettyprint source">&lt;configuration>
13351324

13361325
&lt;appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1374,7 +1363,6 @@ <h4 class="doAnchor" name="overrridingCumulativity">Overriding the
13741363
<p class="example">Example: Additivity flag
13751364
(logback-examples/src/main/resources/chapters/configuration/additivityFlag.xml)</p>
13761365

1377-
<span class="asGroovy" onclick="return asGroovy('additivityFlag');">View as .groovy</span>
13781366
<pre id="additivityFlag" class="prettyprint source">&lt;configuration>
13791367

13801368
&lt;appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1430,7 +1418,6 @@ <h3 class="doAnchor" name="contextName">Setting the context
14301418
<p class="example">Example: Set the context name and display it
14311419
(logback-examples/src/main/resources/chapters/configuration/contextName.xml)</p>
14321420

1433-
<span class="asGroovy" onclick="return asGroovy('contextName');">View as .groovy</span>
14341421
<pre id="contextName" class="prettyprint source">&lt;configuration>
14351422
<b>&lt;contextName>myAppName&lt;/contextName></b>
14361423
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -1508,7 +1495,6 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
15081495
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution1.xml)
15091496
</p>
15101497

1511-
<span class="asGroovy" onclick="return asGroovy('variableSubstitution1');">View as .groovy</span>
15121498
<pre id="variableSubstitution1" class="prettyprint source">&lt;configuration>
15131499

15141500
<b>&lt;property name="USER_HOME" value="/home/sebastien" /></b>
@@ -1536,7 +1522,7 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
15361522
<p class="example">Example: System Variable substitution
15371523
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution2.xml)
15381524
</p>
1539-
<span class="asGroovy" onclick="return asGroovy('variableSubstitution2');">View as .groovy</span>
1525+
15401526
<pre id="variableSubstitution2" class="prettyprint source">&lt;configuration>
15411527

15421528
&lt;appender name="FILE" class="ch.qos.logback.core.FileAppender">
@@ -1561,7 +1547,7 @@ <h4 class="doAnchor" name="definingProps">Defining variables</h4>
15611547
separate file
15621548
(logback-examples/src/main/resources/chapters/configuration/variableSubstitution3.xml)
15631549
</p>
1564-
<span class="asGroovy" onclick="return asGroovy('variableSubstitution3');">View as .groovy</span>
1550+
15651551
<pre id="variableSubstitution3" class="prettyprint source">&lt;configuration>
15661552

15671553
<b>&lt;property file="src/main/java/chapters/configuration/variables1.properties" /></b>
@@ -1662,8 +1648,6 @@ <h4 class="doAnchor" name="scopes">Scopes</h4>
16621648
(logback-examples/src/main/resources/chapters/configuration/contextScopedVariable.xml)
16631649
</p>
16641650

1665-
<span class="asGroovy" onclick="return
1666-
asGroovy('contextScopedVariable');">View as .groovy</span>
16671651
<pre id="contextScopedVariable" class="prettyprint source">&lt;configuration>
16681652

16691653
&lt;property <b class="big">scope="context"</b> name="nodeId" value="firstNode" />

logback-site/src/site/pages/manual/filters.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h3 class="doAnchor" name="yourOwnFilter">Implementing your own
140140

141141
<em>Example: SampleFilter configuration
142142
(logback-examples/src/main/resources/chapters/filters/SampleFilterConfig.xml)</em>
143-
<span class="asGroovy" onclick="return asGroovy('SampleFilterConfig');">View as .groovy</span>
143+
144144
<pre id="SampleFilterConfig" class="prettyprint source">&lt;configuration>
145145
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
146146

@@ -197,7 +197,7 @@ <h3 class="doAnchor" name="levelFilter">LevelFilter</h3>
197197

198198
<em>Example: Sample LevelFilter configuration
199199
(logback-examples/src/main/resources/chapters/filters/levelFilterConfig.xml)</em>
200-
<span class="asGroovy" onclick="return asGroovy('levelFilterConfig');">View as .groovy</span>
200+
201201
<pre id="levelFilterConfig" class="prettyprint source">&lt;configuration>
202202
&lt;appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
203203
<b>&lt;filter class="ch.qos.logback.classic.filter.LevelFilter">
@@ -230,7 +230,7 @@ <h3 class="doAnchor" name="thresholdFilter">ThresholdFilter</h3>
230230

231231
<em>Example: Sample ThresholdFilter configuration
232232
(logback-examples/src/main/resources/chapters/filters/thresholdFilterConfig.xml)</em>
233-
<span class="asGroovy" onclick="return asGroovy('thresholdFilterConfig');">View as .groovy</span>
233+
234234
<pre id="thresholdFilterConfig" class="prettyprint source">&lt;configuration>
235235
&lt;appender name="CONSOLE"
236236
class="ch.qos.logback.core.ConsoleAppender">
@@ -315,7 +315,7 @@ <h3 class="doAnchor" name="GEventEvaluator">GEventEvaluator</h3>
315315

316316
<p>Here is a more complete example.</p>
317317

318-
<span class="asGroovy" onclick="return asGroovy('GEventEvaluator');">View as .groovy</span>
318+
319319
<pre id="GEventEvaluator" class="prettyprint source">&lt;configuration>
320320

321321
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -533,7 +533,7 @@ <h3 class="doAnchor" name="GEventEvaluator">GEventEvaluator</h3>
533533
<em>Example: Basic event evaluator usage
534534
(logback-examples/src/main/resources/chapters/filters/basicEventEvaluator.xml)</em>
535535

536-
<span class="asGroovy" onclick="return asGroovy('basicEventEvaluator');">View as .groovy</span>
536+
537537
<pre id="basicEventEvaluator" class="prettyprint source longline">&lt;configuration>
538538

539539
&lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
@@ -666,7 +666,6 @@ <h2 class="doAnchor" name="matcher">Matchers</h2>
666666
<p>An example should clarify the point:</p>
667667

668668
<em>Example: Defining matchers in an event evaluator (logback-examples/src/main/resources/chapters/filters/evaluatorWithMatcher.xml)</em>
669-
<span class="asGroovy" onclick="return asGroovy('evaluatorWithMatcher');">View as .groovy</span>
670669

671670
<pre id="evaluatorWithMatcher" class="prettyprint source">&lt;configuration debug="true">
672671

@@ -824,7 +823,6 @@ <h3 class="doAnchor" name="yourOwnTurboFilter">Implementing your
824823
<em>Example: Basic custom <code>TurboFilter</code> configuration
825824
(logback-examples/src/main/resources/chapters/filters/sampleTurboFilterConfig.xml)</em>
826825

827-
<span class="asGroovy" onclick="return asGroovy('sampleTurboFilterConfig');">View as .groovy</span>
828826

829827
<pre id="sampleTurboFilterConfig" class="prettyprint source">&lt;configuration>
830828
<b>&lt;turboFilter class="chapters.filters.SampleTurboFilter">
@@ -864,7 +862,7 @@ <h3 class="doAnchor" name="yourOwnTurboFilter">Implementing your
864862
configuration
865863
(logback-examples/src/main/resources/chapters/filters/turboFilters.xml)</em>
866864

867-
<span class="asGroovy" onclick="return asGroovy('turboFilters');">View as .groovy</span>
865+
868866
<pre id="turboFilters" class="prettyprint source">&lt;configuration>
869867

870868
&lt;turboFilter class="ch.qos.logback.classic.turbo.MDCFilter">
@@ -993,7 +991,7 @@ <h3 class="doAnchor" name="yourOwnTurboFilter">Implementing your
993991
<em>Example: <code>DuplicateMessageFilter</code>
994992
configuration (logback-examples/src/main/resources/chapters/filters/duplicateMessage.xml)</em>
995993

996-
<span class="asGroovy" onclick="return asGroovy('duplicateMessage');">View as .groovy</span>
994+
997995
<pre id="duplicateMessage" class="prettyprint source">&lt;configuration>
998996

999997
<b>&lt;turboFilter class="ch.qos.logback.classic.turbo.DuplicateMessageFilter"/></b>

logback-site/src/site/pages/manual/index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,16 @@ <h2>The logback manual</h2>
107107
<a href="onJoran.html"><b>Chapter 11: Joran</b></a>
108108
</p></li>
109109

110-
<li><p><a href="groovy.html"><b>Chapter 12: Groovy
111-
Configuration</b></a></p></li>
112-
113110
<li><p>
114-
<a href="migrationFromLog4j.html"><b>Chapter 13: Migration from log4j</b></a>
111+
<a href="migrationFromLog4j.html"><b>Chapter 12: Migration from log4j</b></a>
115112
</p></li>
116113

117114
<li><p>
118-
<a href="receivers.html"><b>Chapter 14: Receivers</b></a>
115+
<a href="receivers.html"><b>Chapter 13: Receivers</b></a>
119116
</p></li>
120117

121118
<li><p>
122-
<a href="usingSSL.html"><b>Chapter 15: Using SSL</b></a>
119+
<a href="usingSSL.html"><b>Chapter 14: Using SSL</b></a>
123120
</p></li>
124121

125122
</ul>

0 commit comments

Comments
 (0)