log4j library #454
Replies: 3 comments 2 replies
-
hi @ptabandzelic ,
Using it inside the class, for instance:
Will lead to logger name:
If you would like to make your logger static, you do it correctly:
In your log4j.properties you'll need to configure it as follows:
|
Beta Was this translation helpful? Give feedback.
-
Yeah, i understand all of this. My question is when u get logger by module name, which logger is using in background, rootLogger? |
Beta Was this translation helpful? Give feedback.
-
I would assume it's not the rootLogger, but the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, i have been going through the log4j2 library. There is so limited resources other than Java applications. But a simple question:
We get our log4j logger with this getLogger method and we provide name which is a module name like this:
Which logger is actually called like this? Since we dont have loggers that are named as our modules inside log4j configuration.
In default xml configuration all loggers starts with com.databricks.logging.
I have been trying to configure my own log4j2 configuration like this:
And then call it like this:
Beta Was this translation helpful? Give feedback.
All reactions