class RewritingAppender extends AppenderBase[ILoggingEvent] with AppenderAttachable[ILoggingEvent]
Rewriting log appender
Allows to rewrite log levels of external appenders. A logback implementation of http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/rewrite/RewriteAppender.html
If testing is set to true, we will include the rewrite rules that are marked as testing only.
Usage: <appender name="REWRITE_LOG_LEVEL" class="com.digitalasset.canton.logging.RewritingAppender"> <testing>true</testing> <appender-ref ref="CANTON_TEST_LOG" /> <rewrite class="com.digitalasset.canton.logging.Rewrite"> <logger>io.grpc.netty.NettyServerStream</logger> <maxLevel>INFO</maxLevel> </rewrite> <rewrite class="com.digitalasset.canton.logging.Rewrite"> <logger>com.digitalasset.canton.participant.ParticipantNodeInit:test/ParticipantRestartTest/participant/participant1</logger> <contains>Unclean shutdown due to cancellation in</contains> <exceptionMessage>test exception</exceptionMessage> <maxLevel>INFO</maxLevel> <testing>true</testing> </rewrite> </appender>
- Alphabetic
- By Inheritance
- RewritingAppender
- AppenderAttachable
- AppenderBase
- Appender
- FilterAttachable
- LifeCycle
- ContextAwareBase
- ContextAware
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RewritingAppender()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAppender(newAppender: Appender[ILoggingEvent]): Unit
- Definition Classes
- RewritingAppender → AppenderAttachable
- def addError(arg0: String, arg1: Throwable): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addError(arg0: String): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addFilter(arg0: Filter[ILoggingEvent]): Unit
- Definition Classes
- AppenderBase → FilterAttachable
- def addInfo(arg0: String, arg1: Throwable): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addInfo(arg0: String): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addStatus(arg0: Status): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addWarn(arg0: String, arg1: Throwable): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def addWarn(arg0: String): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def append(event: ILoggingEvent): Unit
- Definition Classes
- RewritingAppender → AppenderBase
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearAllFilters(): Unit
- Definition Classes
- AppenderBase → FilterAttachable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def detachAndStopAllAppenders(): Unit
- Definition Classes
- RewritingAppender → AppenderAttachable
- def detachAppender(name: String): Boolean
- Definition Classes
- RewritingAppender → AppenderAttachable
- def detachAppender(appender: Appender[ILoggingEvent]): Boolean
- Definition Classes
- RewritingAppender → AppenderAttachable
- def doAppend(arg0: ILoggingEvent): Unit
- Definition Classes
- AppenderBase → Appender
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getAppender(name: String): Appender[ILoggingEvent]
- Definition Classes
- RewritingAppender → AppenderAttachable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getContext(): Context
- Definition Classes
- ContextAwareBase → ContextAware
- def getCopyOfAttachedFiltersList(): List[Filter[ILoggingEvent]]
- Definition Classes
- AppenderBase → FilterAttachable
- def getDeclaredOrigin(): AnyRef
- Attributes
- protected[spi]
- Definition Classes
- ContextAwareBase
- def getFilterChainDecision(arg0: ILoggingEvent): FilterReply
- Definition Classes
- AppenderBase → FilterAttachable
- def getName(): String
- Definition Classes
- AppenderBase → Appender
- def getStatusManager(): StatusManager
- Definition Classes
- ContextAwareBase
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isAttached(appender: Appender[ILoggingEvent]): Boolean
- Definition Classes
- RewritingAppender → AppenderAttachable
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isStarted(): Boolean
- Definition Classes
- AppenderBase → LifeCycle
- def iteratorForAppenders(): Iterator[Appender[ILoggingEvent]]
- Definition Classes
- RewritingAppender → AppenderAttachable
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def setContext(arg0: Context): Unit
- Definition Classes
- ContextAwareBase → ContextAware
- def setName(arg0: String): Unit
- Definition Classes
- AppenderBase → Appender
- def setRewrite(rule: Rewrite): Unit
- def setTesting(isTesting: Boolean): Unit
- def start(): Unit
- Definition Classes
- AppenderBase → LifeCycle
- def stop(): Unit
- Definition Classes
- RewritingAppender → AppenderBase → LifeCycle
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AppenderBase → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])