S
Spare Brain
Hi,
Even though the code defines an output file when initializing the
java.util.Logger, the output always goes to the stdout. The application is
part of a WebLogic application. What needs to be done to change this
behavior? Any suggestions/hints?
Here's how the code looks:
protected final Logger logger =
Logger.getLogger(System.getProperty("java.logger.logDir", "./logs") +
System.getProperty("file.separator") + getClass().getName() + ".log");
....
....
....
if (logger.isLoggable(Level.INFO)) {
logger.info("Executing static SQL query '" + sql + "'");
}
....
....
Even though the code defines an output file when initializing the
java.util.Logger, the output always goes to the stdout. The application is
part of a WebLogic application. What needs to be done to change this
behavior? Any suggestions/hints?
Here's how the code looks:
protected final Logger logger =
Logger.getLogger(System.getProperty("java.logger.logDir", "./logs") +
System.getProperty("file.separator") + getClass().getName() + ".log");
....
....
....
if (logger.isLoggable(Level.INFO)) {
logger.info("Executing static SQL query '" + sql + "'");
}
....
....