public class LoggerOutputStream extends OutputStream
OutputStream
, który wykorzystuje podany obiekt Logger
'a do logowania danych. Każda linia danych
traktowana jest jako oddzielna wiadomość i jest logowana oddzielnie.Constructor and Description |
---|
LoggerOutputStream(org.slf4j.Logger logger) |
LoggerOutputStream(org.slf4j.Logger logger,
LoggerLevel level) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(int b) |
flush, write, write
public LoggerOutputStream(org.slf4j.Logger logger)
public LoggerOutputStream(org.slf4j.Logger logger, LoggerLevel level)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2019 Suncode. All rights reserved.