|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.gradle.logging.StandardOutputLoggingAdapter
public class StandardOutputLoggingAdapter
Constructor Summary | |
---|---|
StandardOutputLoggingAdapter(ch.qos.logback.classic.Logger log,
ch.qos.logback.classic.Level level)
Creates the OutputStream to flush to the given Category. |
|
StandardOutputLoggingAdapter(ch.qos.logback.classic.Logger log,
ch.qos.logback.classic.Level level,
int bufferLength)
Creates the OutputStream to flush to the given Category. |
Method Summary | |
---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
ch.qos.logback.classic.Level |
getLevel()
|
org.slf4j.Marker |
getMarker()
|
void |
setLevel(ch.qos.logback.classic.Level level)
|
void |
setMarker(org.slf4j.Marker marker)
|
void |
write(int b)
Writes the specified byte to this output stream. |
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardOutputLoggingAdapter(ch.qos.logback.classic.Logger log, ch.qos.logback.classic.Level level) throws java.lang.IllegalArgumentException
log
- the Logger to write tolevel
- the Level to use when writing to the Logger
java.lang.IllegalArgumentException
- if cat == null or priority == nullpublic StandardOutputLoggingAdapter(ch.qos.logback.classic.Logger log, ch.qos.logback.classic.Level level, int bufferLength) throws java.lang.IllegalArgumentException
log
- the Logger to write tolevel
- the Level to use when writing to the LoggerbufferLength
- The initial buffer length to use
java.lang.IllegalArgumentException
- if cat == null or priority == nullMethod Detail |
---|
public void close()
close
is that it closes the output stream. A closed stream cannot perform output operations and
cannot be reopened.
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public void write(int b) throws java.io.IOException
write
is that one byte is
written to the output stream. The byte to be written is the eight low-order bits of the argument b
.
The 24 high-order bits of b
are ignored.
write
in class java.io.OutputStream
b
- the byte
to write
java.io.IOException
- if an I/O error occurs. In particular, an IOException
may be thrown if
the output stream has been closed.public void flush()
flush
is that calling it is an indication that, if any bytes previously written have been buffered
by the implementation of the output stream, such bytes should immediately be written to their intended
destination.
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public ch.qos.logback.classic.Level getLevel()
public void setLevel(ch.qos.logback.classic.Level level)
public org.slf4j.Marker getMarker()
public void setMarker(org.slf4j.Marker marker)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |