Class ProgressAwareConsoleAppender<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<E>
es.urjc.etsii.grafo.terminal.ProgressAwareConsoleAppender<E>
- Type Parameters:
E- log event type
- All Implemented Interfaces:
ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle
public class ProgressAwareConsoleAppender<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>
Logback console appender that preserves the active progress bar line.
-
Field Summary
Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidch.qos.logback.core.encoder.Encoder<E> Returns the current console target.protected OutputStreamvoidsetEncoder(ch.qos.logback.core.encoder.Encoder<E> encoder) voidSets the console target.voidstart()voidstop()Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, buildReentryGuard, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
ProgressAwareConsoleAppender
public ProgressAwareConsoleAppender()
-
-
Method Details
-
setTarget
Sets the console target. Recognized values are System.out and System.err.- Parameters:
value- console target name
-
getTarget
-
start
public void start()- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
resolveTargetStream
-
append
-
stop
public void stop()- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
stopin classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
getEncoder
-
setEncoder
-