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
We had several complaints that it was hard to notice people would use
their favorite logging API so I made it a lot more explicit.
Also I made the APIs titles so that they could be included in the TOC.
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/logging.adoc
+64-35Lines changed: 64 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,40 @@ include::_attributes.adoc[]
9
9
:categories: core,getting-started,observability
10
10
:diataxis-type: reference
11
11
:topics: logging,observability
12
+
:toclevels: 4
12
13
13
14
Read about the use of logging API in {project-name}, configuring logging output, and using logging adapters to unify the output from other logging APIs.
14
15
15
16
include::{includes}/observability-include.adoc[]
16
17
17
18
Quarkus uses the JBoss Log Manager logging backend for publishing application and framework logs.
18
19
Quarkus supports the JBoss Logging API and multiple other logging APIs, seamlessly integrated with JBoss Log Manager.
19
-
You can use any of the <<logging-apis,following APIs>>:
@@ -765,50 +784,59 @@ The logging implementation is not included in the native executable, but you can
765
784
766
785
These adapters are available for popular open-source logging components, as explained in the next chapter.
767
786
787
+
[[logging-adapters]]
768
788
=== Add a logging adapter to your application
769
789
770
-
For each logging API that is not `jboss-logging`:
790
+
For each logging API that is not JBoss Logging, add a logging adapter library to ensure that messages logged through these APIs are routed to the JBoss Log Manager backend.
791
+
You can then verify whether the logs generated by the added library adhere to the same format as the other Quarkus logs.
771
792
772
-
. Add a logging adapter library to ensure that messages logged through these APIs are routed to the JBoss Log Manager backend.
773
-
+
774
793
NOTE: This step is unnecessary for libraries that are dependencies of a Quarkus extension where the extension handles it automatically.
775
-
+
776
-
* Apache Commons Logging:
777
-
+
794
+
795
+
[[logging-adapters-slf4j]]
796
+
==== SLF4J
797
+
798
+
The SLF4J adapter is provided by the following dependency:
0 commit comments