Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/site/pages/access.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>Introduction</h1>
level of a web-application.
</p>

<h1 class="doAnchor" name="tomcat">Logback-access under Tomcat</h1>
<h1 class="doAnchor" id="tomcat">Logback-access under Tomcat</h1>

<p>To use logback-access with Tomcat, after downloading the
logback distribution, place the files
Expand Down Expand Up @@ -139,7 +139,7 @@ <h2>LogbackValve</h2>
<pre><code>&lt;Valve className="ch.qos.&#8203;logback.access.&#8203;tomcat.LogbackValve"
quiet="true" filename="c:/my-logback-access.&#8203;xml"/></code></pre>

<h3 class="doAnchor" name="viewingStatusMessages">Viewing status messages</h3>
<h3 class="doAnchor" id="viewingStatusMessages">Viewing status messages</h3>

<p>Logback-access ships with a servlet called
<code>ViewStatusMessagesServlet</code>. This servlet prints the
Expand Down Expand Up @@ -170,7 +170,7 @@ <h3 class="doAnchor" name="viewingStatusMessages">Viewing status messages</h3>
</p>


<h1 class="doAnchor" name="jetty">Logback-access under Jetty</h1>
<h1 class="doAnchor" id="jetty">Logback-access under Jetty</h1>

<p>After downloading the logback distribution, place the files
<em>logback-core-VERSION.jar</em> and
Expand Down Expand Up @@ -276,7 +276,7 @@ <h3>Logback's implementation of
&lt;/Set&gt;
&lt;/Ref&gt;</code></pre>

<h1 clas="doAnchor" name="configuration">Logback-access configuration</h1>
<h1 clas="doAnchor" id="configuration">Logback-access configuration</h1>


<p>Although similar, the format of <em>logback-access.xml</em>
Expand Down Expand Up @@ -416,7 +416,7 @@ <h3>Configuring Jetty</h3>
</p>


<h2 class="doAnchor" name="teeFilter"><code>TeeFilter</code> <span class="small">(a servlet-filter)</span></h2>
<h2 class="doAnchor" id="teeFilter"><code>TeeFilter</code> <span class="small">(a servlet-filter)</span></h2>

<p>In order to diagnose bugs in a web-application, it is often
handy to capture the client's request as well as the server's
Expand Down
56 changes: 28 additions & 28 deletions src/site/pages/codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<div id="content">

<h2 class="doAnchor" name="top">Logback error messages and their meanings</h2>
<h2 class="doAnchor" id="top">Logback error messages and their meanings</h2>

<h3 class="doAnchor" name="null_CS">The contextSelector cannot be
<h3 class="doAnchor" id="null_CS">The contextSelector cannot be
null in <code>StaticLoggerBinder</code>.
</h3>

Expand All @@ -35,7 +35,7 @@ <h3 class="doAnchor" name="null_CS">The contextSelector cannot be


<!-- ================&#8203;===============&#8203;===============&#8203;============= -->
<h3 class="doAnchor" name="layoutInsteadOfEncoder">This appender no
<h3 class="doAnchor" id="layoutInsteadOfEncoder">This appender no
longer admits a layout as a subcomponent, set an encoder instead.
</h3>

Expand Down Expand Up @@ -135,7 +135,7 @@ <h3 class="doAnchor" name="layoutInsteadOfEncoder">This appender no

<!-- ================&#8203;===============&#8203;===============&#8203;============= -->

<h3 class="doAnchor" name="socket_no_host">No remote host or address
<h3 class="doAnchor" id="socket_no_host">No remote host or address
is set for <code>SocketAppender</code>

</h3>
Expand All @@ -157,7 +157,7 @@ <h3 class="doAnchor" name="socket_no_host">No remote host or address

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="socket_no_port">No remote port is set for
<h3 class="doAnchor" id="socket_no_port">No remote port is set for
<code>SocketAppender</code>
</h3>

Expand All @@ -179,7 +179,7 @@ <h3 class="doAnchor" name="socket_no_port">No remote port is set for

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="smtp_no_layout">No <code>Layout</code> is
<h3 class="doAnchor" id="smtp_no_layout">No <code>Layout</code> is
set for SMTPAppender
</h3>

Expand Down Expand Up @@ -211,7 +211,7 @@ <h3 class="doAnchor" name="smtp_no_layout">No <code>Layout</code> is

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="sbtp_size_format">Specified number is not
<h3 class="doAnchor" id="sbtp_size_format">Specified number is not
in proper int form, or not expected format.
</h3>

Expand All @@ -232,7 +232,7 @@ <h3 class="doAnchor" name="sbtp_size_format">Specified number is not

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="rfa_no_tp">No
<h3 class="doAnchor" id="rfa_no_tp">No
<code>TriggeringPolicy</code> was set for the
<code>RollingFileAppender</code>.

Expand Down Expand Up @@ -267,7 +267,7 @@ <h3 class="doAnchor" name="rfa_no_tp">No

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="#sat_missing_integer_token">Missing
<h3 class="doAnchor" id="sat_missing_integer_token">Missing
integer token, that is %i, in FileNamePattern [...].

</h3>
Expand All @@ -283,7 +283,7 @@ <h3 class="doAnchor" name="#sat_missing_integer_token">Missing

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="rfa_no_rp">No <code>RollingPolicy</code>
<h3 class="doAnchor" id="rfa_no_rp">No <code>RollingPolicy</code>
was set for the <code>RollingFileAppender</code>.
</h3>

Expand Down Expand Up @@ -318,7 +318,7 @@ <h3 class="doAnchor" name="rfa_no_rp">No <code>RollingPolicy</code>


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="tbr_fnp_not_set">The <span
<h3 class="doAnchor" id="tbr_fnp_not_set">The <span
class="option">FileNamePattern</span> property is mandatory for both
<code>TimeBasedRollingPolicy</code> and
<code>FixedWindowRollingPolicy</code>.
Expand All @@ -341,7 +341,7 @@ <h3 class="doAnchor" name="tbr_fnp_not_set">The <span


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="rfa_file_after">The <span
<h3 class="doAnchor" id="rfa_file_after">The <span
class="option">File</span> property must be set before any rolling
policy or triggering policy.

Expand All @@ -356,7 +356,7 @@ <h3 class="doAnchor" name="rfa_file_after">The <span

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="rfa_collision"><span
<h3 class="doAnchor" id="rfa_collision"><span
class="option">File</span> property collides with <span
class="option">fileNamePattern</span>. Aborting.
</h3>
Expand All @@ -378,7 +378,7 @@ <h3 class="doAnchor" name="rfa_collision"><span

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="rfa_collision_in_dateFormat">The date
<h3 class="doAnchor" id="rfa_collision_in_dateFormat">The date
format in <span class="option">fileNamePattern</span> will result in
collisions in the names of archived log files.
</h3>
Expand All @@ -399,7 +399,7 @@ <h3 class="doAnchor" name="rfa_collision_in_dateFormat">The date

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->

<h3 class="doAnchor" name="earlier_fa_collision"><span
<h3 class="doAnchor" id="earlier_fa_collision"><span
class="option">File</span>/<span
class="option">FileNamePattern</span> option has the same value "..." as
that given for appender [...] defined earlier.
Expand All @@ -422,7 +422,7 @@ <h3 class="doAnchor" name="earlier_fa_collision"><span

<!-- ================&#8203;===============&#8203;===============&#8203;===============
-->
<h3 class="doAnchor" name="renamingError">Failed to rename file [x]
<h3 class="doAnchor" id="renamingError">Failed to rename file [x]
as [y].</h3>

<b>On Windows</b>
Expand Down Expand Up @@ -480,7 +480,7 @@ <h3 class="doAnchor" name="renamingError">Failed to rename file [x]
class="option">file</span> property is mandatory.
</p>

<h4 class="doAnchor" name="renamingErrorOnUnix">On Unix-*</h4>
<h4 class="doAnchor" id="renamingErrorOnUnix">On Unix-*</h4>

<p>On the Unix platform, the basic/quick rename method supplied by
the JDK does not work if the source and target files are located on
Expand All @@ -506,7 +506,7 @@ <h4 class="doAnchor" name="renamingErrorOnUnix">On Unix-*</h4>
</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="fwrp_parentFileName_not_set">The <span
<h3 class="doAnchor" id="fwrp_parentFileName_not_set">The <span
class="option">File</span> property must be set before
<code>FixedWindowRollingPolicy</code>
</h3>
Expand All @@ -523,7 +523,7 @@ <h3 class="doAnchor" name="fwrp_parentFileName_not_set">The <span
</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="nested_if_element">Nested &lt;if&gt;
<h3 class="doAnchor" id="nested_if_element">Nested &lt;if&gt;
element within &lt;appender&gt;, &lt;logger&gt; or &lt;root&gt;
elements is disallowed
</h3>
Expand Down Expand Up @@ -570,7 +570,7 @@ <h3 class="doAnchor" name="nested_if_element">Nested &lt;if&gt;


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="tbr_fnp_prudent_unsupported">Prudent mode
<h3 class="doAnchor" id="tbr_fnp_prudent_unsupported">Prudent mode
is not supported with <code>FixedWindowRollingPolicy</code>.
</h3>

Expand All @@ -584,7 +584,7 @@ <h3 class="doAnchor" name="tbr_fnp_prudent_unsupported">Prudent mode


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="syslog_layout">SyslogAppender does not
<h3 class="doAnchor" id="syslog_layout">SyslogAppender does not
admit a layout.
</h3>

Expand All @@ -603,7 +603,7 @@ <h3 class="doAnchor" name="syslog_layout">SyslogAppender does not


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="1andOnly1">Only and only one appender can
<h3 class="doAnchor" id="1andOnly1">Only and only one appender can
be nested the &lt;sift> element in
<code>SiftingAppender</code>.</h3>

Expand All @@ -612,7 +612,7 @@ <h3 class="doAnchor" name="1andOnly1">Only and only one appender can


<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="ifJanino">Could not find Janino library
<h3 class="doAnchor" id="ifJanino">Could not find Janino library
on the class path. Skipping conditional processing.
</h3>

Expand All @@ -624,7 +624,7 @@ <h3 class="doAnchor" name="ifJanino">Could not find Janino library
</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="block">As of logback version 0.9.28,
<h3 class="doAnchor" id="block">As of logback version 0.9.28,
JaninoEventEvaluator expects Java blocks.
</h3>

Expand Down Expand Up @@ -673,7 +673,7 @@ <h3 class="doAnchor" name="block">As of logback version 0.9.28,
</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="param">The &lt;param&gt; element is
<h3 class="doAnchor" id="param">The &lt;param&gt; element is
deprecated in favor of a more direct syntax.
</h3>

Expand All @@ -699,7 +699,7 @@ <h3 class="doAnchor" name="param">The &lt;param&gt; element is
</code></pre>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="missingRightParenthesis">In a conversion
<h3 class="doAnchor" id="missingRightParenthesis">In a conversion
pattern, opened parenthesis must be closed.
</h3>

Expand All @@ -712,7 +712,7 @@ <h3 class="doAnchor" name="missingRightParenthesis">In a conversion
</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="saxParserConfiguration">Error during SAX parser configuration</h3>
<h3 class="doAnchor" id="saxParserConfiguration">Error during SAX parser configuration</h3>


<p>If you see the following error is thrown during logback configuration
Expand All @@ -732,7 +732,7 @@ <h3 class="doAnchor" name="saxParserConfiguration">Error during SAX parser confi
<p>See also <a href="https://jira.qos.ch/browse/LOGBACK-1577">LOGBACK-1577</a>.</p>

<!-- ================&#8203;===============&#8203;===============&#8203;=============== -->
<h3 class="doAnchor" name="appender_order">Appenders must be
<h3 class="doAnchor" id="appender_order">Appenders must be
defined before they are referenced.
</h3>

Expand Down
2 changes: 1 addition & 1 deletion src/site/pages/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<script type="text/javascript" src="templates/sponsoredBy.js"></script>

<h2 class="doAnchor" name="top">Frequently Asked Questions</h2>
<h2 class="doAnchor" id="top">Frequently Asked Questions</h2>

<h3>Logback project</h3>

Expand Down
12 changes: 6 additions & 6 deletions src/site/pages/js/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function decoratePropertiesInTables(anchor) {

var tmpHTML = p.innerHTML;
var propName = e.innerHTML;
var nameAttr = $(e).attr('name')
var nameAttr = $(e).attr('id')

if(nameAttr == null) {
var containerAttr = $(e).attr('container')
Expand All @@ -44,7 +44,7 @@ function decoratePropertiesInTables(anchor) {
nameAttr = propName;
}

p.innerHTML = "<a name='" + nameAttr + "' href='#" + nameAttr +
p.innerHTML = "<a href='#" + nameAttr +
"'><span class='anchor'/></a><b>" +tmpHTML +"</b>";
scrollIfMatch(p, nameAttr, anchor);
} // for
Expand All @@ -55,10 +55,10 @@ function decorateConversionWordInTables(anchor) {
for(var i = 0; i < elems.length; i++) {
var e = elems[i];
var tmpHTML = e.innerHTML;
var nameAttr = $(e).attr('name')
var nameAttr = $(e).attr('id')
if(nameAttr == null)
continue;
e.innerHTML = "<a name='" + nameAttr + "' href='#" + nameAttr +
e.innerHTML = "<a href='#" + nameAttr +
"'><span class='anchor'/></a>" +tmpHTML;
scrollIfMatch(e, nameAttr, anchor);
}
Expand All @@ -70,11 +70,11 @@ function decorateDoAnchor(anchor) {
for(var i = 0; i < elems.length; i++) {
var e = elems[i];
var tmpHTML = e.innerHTML;
var nameAttr = $(e).attr('name')
var nameAttr = $(e).attr('id')
if(nameAttr == null) {
nameAttr = camelCase($.trim(tmpHTML))
}
e.innerHTML = "<a name='" + nameAttr + "' href='#" + nameAttr +
e.innerHTML = "<a href='#" + nameAttr +
"'><span class='anchor'/></a>" +tmpHTML;
scrollIfMatch(e, nameAttr, anchor);
}
Expand Down
Loading