From 99095a4f309cd4bffcc1147a68cca597788d8a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6rdes?= Date: Mon, 20 Nov 2023 16:17:38 +0100 Subject: [PATCH] added time to example --- distribution/examples/logging/access/README.md | 9 +++------ distribution/examples/logging/access/log4j2_access.xml | 6 +++--- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/distribution/examples/logging/access/README.md b/distribution/examples/logging/access/README.md index 06b8df6bc0..c676756204 100644 --- a/distribution/examples/logging/access/README.md +++ b/distribution/examples/logging/access/README.md @@ -5,6 +5,8 @@ The default implementation provides a [Apache Common Log](https://httpd.apache.o You can provide optional `` to extend or override the default configuration. +#### Note that a portion of the configuration is defined in `log4j2_access.xml`. + ## Running the example This example will visit a website and logs the access to the console. We use some predefined variables already declared in @@ -12,9 +14,4 @@ the `AccessLogInterceptor` and some additional variables to extend the default b 1. Run `examples/logging/access/service-proxy.sh` 2. Open your browser or curl http://localhost:2000 -3. Check if membrane logged something like `127.0.0.1 "GET / HTTP/1.1" 200 0 - application/json` - - - - - +3. Check if membrane logged something like `127.0.0.1 [20/11/2023:16:12:46 +0100] "GET /shop/v2/products/1 HTTP/1.1" 200 0 - [application/json]` diff --git a/distribution/examples/logging/access/log4j2_access.xml b/distribution/examples/logging/access/log4j2_access.xml index 153cfa845a..b8cbafd22b 100644 --- a/distribution/examples/logging/access/log4j2_access.xml +++ b/distribution/examples/logging/access/log4j2_access.xml @@ -5,10 +5,10 @@ - + - + @@ -24,4 +24,4 @@ - + \ No newline at end of file