java - what is the right way to use log4j within jsp pages -


I mean, I want to mirror the logger name to the source.jsp file, no matter if it's any other File is included or a class or whatever is compiled.

What's wrong with this:

  logger logger = logger Tag ("source.jsp");  

You can predeve it with a better non-ambiguous prefix, of course. Indeed, with some lines, some code is better than JSPS.source.jsp because you can set up logging rules for JSPS logger, which will be later on all sub-loggers Will be applicable

After saying this, why do you need to log in directly with JSP?


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -