 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
scoffer Guest
|
Posted: Tue Jun 20, 2006 9:28 pm Post subject: Logger info |
|
|
Hi all,
i need to change the Formatter for the Logger that write on the console.
My code is something like that:
logHandler = new FileHandler("RecVenduto.log", true);
theLogger.addHandler(logHandler);
theLogger.setLevel(logLevel);
Handler hdl [] = theLogger.getHandlers();
for (int cnt=0; cnt < hdl.length; cnt++) {
hdl[cnt].setFormatter(new MyCustomFormatter());
hdl[cnt].setLevel(logLevel);
}
This code change the Formatter for the FileHandler, but the console output
don't change.
Can I set different Levels for FileHandler and console output??
Thanks in advance.
Daniele B.
Software Specialist |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|