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: docs/src/main/asciidoc/logging.adoc
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,12 @@ public class MyService {
109
109
<1> Define the logger field.
110
110
<2> Invoke the desired logging methods on the `log` object.
111
111
112
+
[WARNING]
113
+
====
114
+
When creating a `Logger` instance, some metadata associated to the `Logger` name are kept in memory for the full lifecycle of the application.
115
+
116
+
It is not recommended to use an unbounded dynamic name for your loggers (e.g. `for (int i ...) { Logger.getLogger("logger-name." + i).info("my log") }`).
0 commit comments