package logging
- Alphabetic
- By Inheritance
- logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class BoundedQueue[A] extends Queue[A]
- Annotations
- @SuppressWarnings()
- class CantonFilterEvaluator extends EvaluatorFilter[ILoggingEvent]
Filters out any events with log level strictly lower than "LOG_LEVEL_CANTON" and logger name starting with "com.daml" or "com.digitalasset".
Filters out any events with log level strictly lower than "LOG_LEVEL_CANTON" and logger name starting with "com.daml" or "com.digitalasset". The property "LOG_LEVEL_CANTON" is first read from java system properties, then from the shell environment and then the default of INFO is taken. (This is consistent with the standard logback behavior.)
- class CantonJsonEncoder extends LogstashEncoder
canton specific json log encoding
canton specific json log encoding
equivalent of: <encoder class="net.logstash.logback.encoder.LogstashEncoder"> <excludeMdcKeyName>err-context</excludeMdcKeyName> </encoder>
- case class ErrorLoggingContext(logger: TracedLogger, properties: Map[String, String], traceContext: TraceContext) extends ContextualizedErrorLogger with Product with Serializable
- class LastErrorsAppender extends AppenderBase[ILoggingEvent] with AppenderAttachable[ILoggingEvent]
Logback appender that keeps a bounded queue of errors/warnings that have been logged and associated log entries with the same trace-id.
Logback appender that keeps a bounded queue of errors/warnings that have been logged and associated log entries with the same trace-id.
- Annotations
- @SuppressWarnings()
- trait NamedLoggerFactory extends AnyRef
NamedLoggerFactory augments a regular class-based slf4j logger with one annotated with a "name" where the name provides human readable context identifying a class instance, e.g.
NamedLoggerFactory augments a regular class-based slf4j logger with one annotated with a "name" where the name provides human readable context identifying a class instance, e.g. which participant in a set of participants has logged a particular message.
The name can be constructed in a nested, left-to-right append manner.
- trait NamedLogging extends AnyRef
- final class Rewrite extends AnyRef
Rewrite object used for logback.xml
- class RewritingAppender extends AppenderBase[ILoggingEvent] with AppenderAttachable[ILoggingEvent]
Rewriting log appender
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>
- type TracedLogger = LoggerTakingImplicit[TraceContext]
Alias the complex logger type we use which expects a implicit TraceContext to something more memorable
Value Members
- object ErrorLoggingContext extends Serializable
- object NamedLoggerFactory
- object NamedLogging
- object TracedLogger