-
Notifications
You must be signed in to change notification settings - Fork 962
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference doc update for logging (#4593)
- Loading branch information
1 parent
d959d9b
commit 7f0d479
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[[overview]] | ||
= Logging Metrics Instrumentation | ||
|
||
Micrometer can add metrics to different loggers | ||
|
||
* <<logging-log4j, Log4j>> | ||
* <<logging-logback, Logback>> | ||
|
||
[[logging-log4j]] | ||
== Log4j Instrumentation | ||
|
||
[source,java,subs=+attributes] | ||
----- | ||
// Setting up instrumentation | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/logging/Log4j2MetricsTest.java[tags=setup, indent=0] | ||
// Usage example | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/logging/Log4j2MetricsTest.java[tags=example, indent=0] | ||
----- | ||
|
||
[[logging-logback]] | ||
== Logback Instrumentation | ||
|
||
[source,java,subs=+attributes] | ||
----- | ||
// Setting up instrumentation | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/logging/LogbackMetricsTest.java[tags=setup, indent=0] | ||
// Usage example | ||
include::{include-core-test-java}/io/micrometer/core/instrument/binder/logging/LogbackMetricsTest.java[tags=example, indent=0] | ||
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters