I run my app via a batch file (DOS) with a command line starting
%JAVA_HOME%\bin\javaw.exe -D.\xml\log4j.xml -classpath .\bin;........
I have a utility class which has a number of methods within it one of which is this :-
public static void initLogging()
{
DOMConfigurator.configure("xml/log4j.xml");
}
This is called a the start of my application.
Any debug messages are generated as example :-
public static void
test()
{
final Logger logger = Logger.getLogger(MyTest.class);
logger.debug("something meaningful");
}
These messages appear in the Eclipse "console" window when I run from the
IDE, but I was rather expecting to see them in the DOS window when the app is run from the desktop direct. I have "ECHO ON" at the start of my batch file.
Should I be doing some more coding in my initLogging routine.
Thanks in advance
Dave