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: src/site/antora/modules/ROOT/partials/log4j-features.adoc
+11-12
Original file line number
Diff line number
Diff line change
@@ -22,26 +22,25 @@ Log4j bundles a rich set of components to assist various use cases.
22
22
* xref:manual/filters.adoc[Filters] based on log event rates, regular expressions, scripts, time, etc.
23
23
* xref:manual/lookups.adoc[Lookups] for accessing system properties, environment variables, log event fields, etc.
24
24
25
-
API separation::
26
-
The API for Log4j (i.e., `log4j-api`) is separate from the implementation (i.e., `log4j-core`), making it straightforward for application developers which classes and methods to use while ensuring forward compatibility.
27
-
(See xref:manual/api-separation.adoc[API Separation] for details.)
28
-
The Log4j API also provides the most feature-rich logging facade in the market; support for various `Message` types (such as `Object` or `Map`) besides plain `String`, lambda expressions, parametrized logging, markers, levels, diagnostic contexts (aka. MDC/NDC), etc.
29
-
Check out the xref:manual/api.adoc[Java API], {logging-services-url}/log4j/kotlin[Kotlin API], and {logging-services-url}/log4j/scala[Scala API] pages for further information.
30
-
31
-
No vendor lock-in::
32
-
Even though Log4j implements the Log4j API at its fullest, users can use another logging backend.
33
-
This can be achieved by either using another backend implementing the Log4j API or forwarding Log4j API calls to another logging facade (e.g., SLF4J) and using a backend for that particular facade.
34
-
35
25
Reliability::
36
26
Log4j is built with solid reliability in mind.
37
27
It can automatically reload its configuration upon modification and will do so without losing log events while reconfiguration occurs.
38
28
39
29
Performance::
40
30
When configured correctly, Log4j can deliver excelling performance without almost any burden on the Java garbage collector, and it will do so without sacrificing reliability.
41
-
This is made possible via an asynchronous logger founded on the https://lmax-exchange.github.io/disruptor/[LMAX Disruptor] technology (having its roots in the demanding industry of financial trading) and the garbage-free features baked at hot paths.
42
31
Check out the xref:manual/performance.adoc[Performance] page for details.
43
32
44
33
Extensibility::
45
34
Log4j contains a fully-fledged xref:manual/plugins.adoc[plugin support] that users can leverage to extend functionality.
46
-
You can easily add your components (layouts, appenders, filters, etc.) or customize existing ones (e.g., adding new directives to the xref:manual/layouts.adoc#PatternLayout[Pattern] or xref:manual/json-template-layout.adoc#extending[JSON Template Layout]).
35
+
You can easily add your components (layouts, appenders, filters, etc.) or customize existing ones (e.g., adding new directives to xref:manual/extending.adoc#PatternConverters[Pattern Layout] or xref:manual/json-template-layout.adoc#extending[JSON Template Layout]).
47
36
Check out the xref:manual/extending.adoc[Extending Log4j] page.
37
+
38
+
Powerful API::
39
+
Log4j is a logging system where the API (called Log4j API) and its implementation (called Log4j Core) is distinctly separate from each other.
40
+
xref:manual/api.adoc[Log4j API] provides the most feature-rich logging facade in the market; support for various `Message` types (such as `Object` or `Map`) besides plain `String`, lambda expressions, parameterized logging, markers, levels, diagnostic contexts (aka. MDC/NDC), etc.
41
+
Log4j team takes backward compatibility very seriously and makes sure people relying on Log4j API gets a logging facade that is straightforward to use in a correct and future-proof way.
42
+
Check out the xref:manual/api.adoc[Java API], {logging-services-url}/log4j/kotlin[Kotlin API], and {logging-services-url}/log4j/scala[Scala API] pages for further information.
43
+
44
+
No vendor lock-in::
45
+
Log4j API is a generic logging facade for various logging frameworks.
46
+
While Log4j Core implements it at its fullest, you can easily switch to other implementations such as Logback or JUL (`java.util.logging`).
0 commit comments