You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,20 @@ command:
25
25
The JMH benchmark is executed by several parameters that are all defined in the
26
26
`com.openelements.logger.api.BenchmarkConstants` class in the `logger-api` module.
27
27
28
+
## What is tested
29
+
30
+
Since not all loggers provide the same set of functionalities the `com.openelements.logger.api.Logger` interface contains all features that should be tested. That feature set reflects the features that a modern logging api should provide:
31
+
32
+
- log messages
33
+
- add stack trace (by throwable to message)
34
+
- support `{}` placeholders in message
35
+
- support markers
36
+
- support a context (like MDC or thread context)
37
+
- add a timestamp, the current thread and the name of the caller class to the message
38
+
- log to file system and/or console
39
+
40
+
Since some loggers does not provide some of the features a simple implementation is part of the `com.openelements.logger.api.Logger` implementation for that logger lib.
41
+
28
42
## How to add a new logging library?
29
43
30
44
To add a new logging library, you need to create a new module that contains the implementation of the logging library.
0 commit comments