Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
Logging Log4j2
Commits
189070de
Commit
189070de
authored
8 years ago
by
Ralph Goers
Browse files
Options
Download
Email Patches
Plain Diff
LOG4J2-1911 Improve the documentation of the DynamicThresholdFilter
parent
7b043f6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/changes/changes.xml
+3
-0
src/changes/changes.xml
src/site/xdoc/manual/filters.xml
+10
-3
src/site/xdoc/manual/filters.xml
with
13 additions
and
3 deletions
+13
-3
src/changes/changes.xml
+
3
-
0
View file @
189070de
...
...
@@ -31,6 +31,9 @@
- "remove" - Removed
-->
<release
version=
"2.9.0"
date=
"2017-MM-DD"
description=
"GA Release 2.9.0"
>
<action
issue=
"LOG4J2-1911"
dev=
"rgoers"
type=
"fix"
>
Improve the documentation of the DynamicThresholdFilter.
</action>
<action
issue=
"LOG4J2-1442"
dev=
"mikes"
type=
"add"
>
Generic HTTP appender.
</action>
...
...
This diff is collapsed.
Click to expand it.
src/site/xdoc/manual/filters.xml
+
10
-
3
View file @
189070de
...
...
@@ -169,7 +169,8 @@
<p>
The DynamicThresholdFilter allows filtering by log level based on specific attributes. For example,
if the user's loginId is being captured in the ThreadContext Map then it is possible to enable
debug logging for only that user.
debug logging for only that user. If the log event does not contain the specified ThreadContext item
NEUTRAL will be returned.
</p>
<table>
<caption
align=
"top"
>
Dynamic Threshold Filter Parameters
</caption>
...
...
@@ -178,11 +179,17 @@
<th>
Type
</th>
<th>
Description
</th>
</tr>
<tr>
<td>
key
</td>
<td>
String
</td>
<td>
The name of the item in the ThreadContext Map to compare.
</td>
</tr>
<tr>
<td>
defaultThreshold
</td>
<td>
String
</td>
<td>
Level of messages to be filtered. If there is no matching key in the key/value pairs
then this level will be compared against the event's level.
<td>
Level of messages to be filtered. The default threshold only applies if the log event contains
the specified ThreadContext Map item and its value does not match any key in
the key/value pairs.
</td>
</tr>
<tr>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment