Under the default config
log.debug("Whatever") only goes to the file.
The console has a threshold of INFO
Is it possible to have a fileappender to a file myapp.log which is accessed by myapp? And how do I access that? Or must I do that via original log4j API?
Thank you very much,
that was the information that had impact.
one last question.
my code now looks like that:
log.debug("doPost aufgerufen mit action=" + action);
and I have defined a category:
Is there a way to automatically get a logger for that category because the class who calls it is in package com.mypackage or do I need to code that:
Logger log =Logger.getLogger(getClass().getName());
Not sure I understand the question?
The code you show is the mechanism to get the logger.