mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
ConsoleHandler.setOutputStream(x) has closed System.err
This commit is contained in:
parent
8726bb92d6
commit
0d58782f75
@ -85,15 +85,13 @@ public class JWebAssembly {
|
||||
public static final Logger LOGGER = Logger.getAnonymousLogger( null );
|
||||
static {
|
||||
LOGGER.setUseParentHandlers( false );
|
||||
ConsoleHandler handler = new ConsoleHandler() {{
|
||||
setOutputStream(System.out);
|
||||
}};
|
||||
handler.setFormatter( new Formatter() {
|
||||
Formatter formatter = new Formatter() {
|
||||
@Override
|
||||
public String format( LogRecord record ) {
|
||||
return record.getMessage() + '\n';
|
||||
}
|
||||
});
|
||||
};
|
||||
StreamHandler handler = new StreamHandler( System.out, formatter );
|
||||
handler.setLevel( Level.ALL );
|
||||
LOGGER.addHandler( handler );
|
||||
//LOGGER.setLevel( Level.FINE );
|
||||
|
Loading…
x
Reference in New Issue
Block a user