Skip to content

Commit 8e7c89c

Browse files
authored
Merge pull request #49114 from sheilamjones/QDOCS-1264-minor-edits
Docs: Minor editing fixes to Logging configuration guide
2 parents 76077cb + 3bad71f commit 8e7c89c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/src/main/asciidoc/logging.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,13 @@ For extension development, use `org.jboss.logging.Logger.getLogger(String)` inst
143143

144144
The injection of a configured `org.jboss.logging.Logger` logger instance with the `@Inject` annotation is another alternative to adding an application logger, but is applicable only to CDI beans.
145145

146-
You can use `@Inject Logger log`, where the logger gets named after the class you inject it to, or `@LoggerName("...") Logger log`, where the logger will receive the specified name. Notice, that `@Inject`
147-
is not required if you already annotated your `Logger` with `@LoggerName("...")`.
148-
146+
You can use `@Inject Logger log`, where the logger gets named after the class you inject it to, or `@LoggerName("...") Logger log`, where the logger receives the specified name.
147+
148+
[NOTE]
149+
====
150+
`@Inject` is not required if you already annotated your `Logger` with `@LoggerName("...")`.
151+
====
152+
149153
Once injected, you can use the `log` object to invoke logging methods.
150154

151155
.An example of two different types of logger injection:

0 commit comments

Comments
 (0)