Class TurMongoDBAppenderBase

Object
ContextAwareBase
AppenderBase<ILoggingEvent>
TurMongoDBAppenderBase
All Implemented Interfaces:
Appender<ILoggingEvent>, ContextAware, FilterAttachable<ILoggingEvent>, LifeCycle
Direct Known Subclasses:
TurMongoDBAppender, TurMongoDBIndexingAppender

public class TurMongoDBAppenderBase extends AppenderBase<ILoggingEvent>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected MongoCollection<Document>
     
    protected String
     
    protected String
     
    protected String
     
    protected boolean
     

    Fields inherited from class AppenderBase

    name, started

    Fields inherited from class ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    append(ILoggingEvent iLoggingEvent)
     
    void
     

    Methods inherited from class AppenderBase

    addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, stop, toString

    Methods inherited from class ContextAwareBase

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface ContextAware

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
  • Field Details

    • enabled

      protected boolean enabled
    • connectionString

      protected String connectionString
    • databaseName

      protected String databaseName
    • collectionName

      protected String collectionName
    • collection

      protected MongoCollection<Document> collection
  • Constructor Details

    • TurMongoDBAppenderBase

      public TurMongoDBAppenderBase()
  • Method Details

    • append

      protected void append(ILoggingEvent iLoggingEvent)
      Specified by:
      append in class AppenderBase<ILoggingEvent>
    • start

      public void start()
      Specified by:
      start in interface LifeCycle
      Overrides:
      start in class AppenderBase<ILoggingEvent>