c

com.digitalasset.canton.logging

RewritingAppender

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>

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RewritingAppender
  2. AppenderAttachable
  3. AppenderBase
  4. Appender
  5. FilterAttachable
  6. LifeCycle
  7. ContextAwareBase
  8. ContextAware
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RewritingAppender()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAppender(newAppender: Appender[ILoggingEvent]): Unit
    Definition Classes
    RewritingAppender → AppenderAttachable
  5. def addError(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  6. def addError(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  7. def addFilter(arg0: Filter[ILoggingEvent]): Unit
    Definition Classes
    AppenderBase → FilterAttachable
  8. def addInfo(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  9. def addInfo(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  10. def addStatus(arg0: Status): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  11. def addWarn(arg0: String, arg1: Throwable): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  12. def addWarn(arg0: String): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  13. def append(event: ILoggingEvent): Unit
    Definition Classes
    RewritingAppender → AppenderBase
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def clearAllFilters(): Unit
    Definition Classes
    AppenderBase → FilterAttachable
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  17. def detachAndStopAllAppenders(): Unit
    Definition Classes
    RewritingAppender → AppenderAttachable
  18. def detachAppender(name: String): Boolean
    Definition Classes
    RewritingAppender → AppenderAttachable
  19. def detachAppender(appender: Appender[ILoggingEvent]): Boolean
    Definition Classes
    RewritingAppender → AppenderAttachable
  20. def doAppend(arg0: ILoggingEvent): Unit
    Definition Classes
    AppenderBase → Appender
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def getAppender(name: String): Appender[ILoggingEvent]
    Definition Classes
    RewritingAppender → AppenderAttachable
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def getContext(): Context
    Definition Classes
    ContextAwareBase → ContextAware
  26. def getCopyOfAttachedFiltersList(): List[Filter[ILoggingEvent]]
    Definition Classes
    AppenderBase → FilterAttachable
  27. def getDeclaredOrigin(): AnyRef
    Attributes
    protected[spi]
    Definition Classes
    ContextAwareBase
  28. def getFilterChainDecision(arg0: ILoggingEvent): FilterReply
    Definition Classes
    AppenderBase → FilterAttachable
  29. def getName(): String
    Definition Classes
    AppenderBase → Appender
  30. def getStatusManager(): StatusManager
    Definition Classes
    ContextAwareBase
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def isAttached(appender: Appender[ILoggingEvent]): Boolean
    Definition Classes
    RewritingAppender → AppenderAttachable
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def isStarted(): Boolean
    Definition Classes
    AppenderBase → LifeCycle
  35. def iteratorForAppenders(): Iterator[Appender[ILoggingEvent]]
    Definition Classes
    RewritingAppender → AppenderAttachable
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def setContext(arg0: Context): Unit
    Definition Classes
    ContextAwareBase → ContextAware
  40. def setName(arg0: String): Unit
    Definition Classes
    AppenderBase → Appender
  41. def setRewrite(rule: Rewrite): Unit
  42. def setTesting(isTesting: Boolean): Unit
  43. def start(): Unit
    Definition Classes
    AppenderBase → LifeCycle
  44. def stop(): Unit
    Definition Classes
    RewritingAppender → AppenderBase → LifeCycle
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String
    Definition Classes
    AppenderBase → AnyRef → Any
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AppenderBase[ILoggingEvent]

Inherited from Appender[ILoggingEvent]

Inherited from LifeCycle

Inherited from ContextAwareBase

Inherited from ContextAware

Inherited from AnyRef

Inherited from Any

Ungrouped