Package nl.vpro.logging
Class Log4j2OutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- nl.vpro.logging.AbstractLoggerOutputStream
-
- nl.vpro.logging.Log4j2OutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public abstract class Log4j2OutputStream extends AbstractLoggerOutputStream
This is an output stream that logs every received line- Since:
- 2.10
- Author:
- Michiel Meeuwissen
-
-
Field Summary
-
Fields inherited from class nl.vpro.logging.AbstractLoggerOutputStream
charset, count, max
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Log4j2OutputStream
debug(org.apache.logging.log4j.Logger log)
static Log4j2OutputStream
debug(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
static Log4j2OutputStream
error(org.apache.logging.log4j.Logger log)
static Log4j2OutputStream
error(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
static Log4j2OutputStream
info(org.apache.logging.log4j.Logger log)
static Log4j2OutputStream
info(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
static Log4j2OutputStream
log(org.apache.logging.log4j.Logger log, Function<String,org.apache.logging.log4j.Level> level)
static Log4j2OutputStream
warn(org.apache.logging.log4j.Logger log)
static Log4j2OutputStream
warn(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
static Log4j2OutputStream
warn(org.apache.logging.log4j.Logger log, boolean skipEmptyLines, Integer max)
-
Methods inherited from class nl.vpro.logging.AbstractLoggerOutputStream
close, flush, getCharset, getCount, getMax, log, setCharset, setMax, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Method Detail
-
debug
public static Log4j2OutputStream debug(org.apache.logging.log4j.Logger log)
-
debug
public static Log4j2OutputStream debug(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
-
info
public static Log4j2OutputStream info(org.apache.logging.log4j.Logger log)
-
info
public static Log4j2OutputStream info(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
-
warn
public static Log4j2OutputStream warn(org.apache.logging.log4j.Logger log)
-
warn
public static Log4j2OutputStream warn(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
-
warn
public static Log4j2OutputStream warn(org.apache.logging.log4j.Logger log, boolean skipEmptyLines, Integer max)
-
error
public static Log4j2OutputStream error(org.apache.logging.log4j.Logger log)
-
error
public static Log4j2OutputStream error(org.apache.logging.log4j.Logger log, boolean skipEmptyLines)
-
log
public static Log4j2OutputStream log(org.apache.logging.log4j.Logger log, Function<String,org.apache.logging.log4j.Level> level)
-
-