Class FailoverAppender

All Implemented Interfaces:
Appender, Filterable, LocationAware, LifeCycle, LifeCycle2

@Plugin(name="Failover", category="Core", elementType="appender", printObject=true) public final class FailoverAppender extends AbstractAppender
The FailoverAppender will capture exceptions in an Appender and then route the event to a different appender. Hopefully it is obvious that the Appenders must be configured to not suppress exceptions for the FailoverAppender to work.
  • Field Details

    • DEFAULT_INTERVAL_SECONDS

      private static final int DEFAULT_INTERVAL_SECONDS
      See Also:
    • primaryRef

      private final String primaryRef
    • failovers

      private final String[] failovers
    • config

      private final Configuration config
    • primary

      private AppenderControl primary
    • failoverAppenders

      private final List<AppenderControl> failoverAppenders
    • intervalNanos

      private final long intervalNanos
    • nextCheckNanos

      private volatile long nextCheckNanos
  • Constructor Details

  • Method Details