![]() |
2 Loggers in the same Servlet....
Hello guys i have a little problem.
I have a servlet and i create 2 Loggers , that each one is writing to a different file. The problem is , when i open the files i can see that both Loggers are writing to both files, i will give an example later. I found out that if i create the new Logger with newInstance() the problem dissapears, but i am not confident to do it on the Servlet. Here is my code: :
static Logger appLogger = Logger.getLogger(checkLogin.class);At the end , both file will have both info . P.S. i am not able to config log4j from property file, because of some security problems Any idea? |
| All times are GMT -5. The time now is 2:43 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC