Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Commit c726c07

Browse files
author
Libor Ondrušek
committed
Fixed doc
1 parent f1a60c9 commit c726c07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public void onStartup(ServletContext servletContext) throws ServletException {
3131
|excludedPaths |empty |Comma sepparated list of URL prefixes e.g.: "/api,/admin"|
3232
|requestPrefix |REQUEST: |First word on request output line |
3333
|responsePrefix|RESPONSE: |First word on response output line |
34+
|requestMarker |RESPONSE |Slf4J marker for request |
35+
|responseMarker|RESPONSE |Slf4J marker for response |
36+
|disablePrefix |false |No prefixes are logged if true |
37+
|disableMarkers|false |No Slf4J markers are logged if true |
3438

3539
## Customization
3640
There are few methods for rewrite if you want:
@@ -52,6 +56,6 @@ javax.servlet.filter.logging.LoggingFilter.getResponseDescription
5256

5357
## Output
5458
```
55-
REQUEST:{"sender": "127.0.0.1", "method": "GET", "path": "http://localhost:8080/test", "params": {"param1": "1000"}, "headers": {"Accept": "application/json", "Content-Type":"text/plain"}, "body": "Test request body"}
59+
REQUEST: {"sender": "127.0.0.1", "method": "GET", "path": "http://localhost:8080/test", "params": {"param1": "1000"}, "headers": {"Accept": "application/json", "Content-Type":"text/plain"}, "body": "Test request body"}
5660
RESPONSE: {"status":200,"headers":{"Content-Type":"text/plain"},"body":"Test response body"}
5761
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>javax.servlet</groupId>
66
<artifactId>javax.servlet-logging-filter</artifactId>
7-
<version>1.2.0</version>
7+
<version>1.2.1</version>
88

99
<name>Servlet logging filter</name>
1010
<description>Servlet filter for logging requests and responses</description>

0 commit comments

Comments
 (0)