User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » log4j Logger vs LogManager Page [1]  
jcstille
Veteran
254 Posts
user info
edit post

I was wondering if someone could give me insight into the difference between doing a Logger.getLogger("whatever") vs a LogManager.getLogger("whatever").

org.apache.log4j.Logger
vs
org.apache.log4j.LogManager

Thanks

12/13/2007 4:20:20 PM

DonMega
Save TWW
4196 Posts
user info
edit post

is one thread safe?

12/13/2007 5:23:36 PM

hydro290
All American
1703 Posts
user info
edit post

I'm just guessing, but Logger.getLogger(String s) actually creates a logger instance if it doesn't exist. I imagine LogManager is just using allowing you to find a logger that already exists.

[Edited on December 13, 2007 at 5:29 PM. Reason : :]

12/13/2007 5:29:01 PM

 Message Boards » Tech Talk » log4j Logger vs LogManager Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.