what are the two static methods for obtaining a logger object?
Answer / Anurag Khare
In Apache Log4j, you can obtain a Logger instance using either of these two static methods: (1) Logger.getLogger(String name): Returns the logger associated with the specified name; and (2) Logger.getRootLogger(): Returns the root logger, which is the top-level logger in your application.
| Is This Answer Correct ? | 0 Yes | 0 No |
what are Appenders in Log4j?
what is the best way to migrate from java.util logging to log4j?
How log4j file is defined?
what is the command to write your logging information into a file?
what is Log4j?
what are the logging methods provided by logger class?
In log4j how can you log into the database?
why do you get multiple copies of the message in log file sometime?
Explain whether log4j is a thread safe?
how can you get multiple processes to log to the same file?
what are the other support objects in Log4j?
what does .class mean in log4j context?