Package io.micronaut.oraclecloud.logging
Class OracleCloudAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
io.micronaut.oraclecloud.logging.OracleCloudAppender
- All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
,ch.qos.logback.core.spi.LifeCycle
@Internal
public final class OracleCloudAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
implements ch.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
Oracle Cloud log appender for logback.
- Since:
- 2.2.0
- Author:
- Nemanja Mikic
-
Field Summary
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> newAppender) void
addBlackListLoggerName
(String blackListLoggerName) protected void
append
(ch.qos.logback.classic.spi.ILoggingEvent eventObject) void
boolean
detachAppender
(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) boolean
detachAppender
(String name) ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>
getAppender
(String name) ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
getLogId()
int
long
int
getType()
boolean
isAttached
(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) Iterator<ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>>
void
setEncoder
(ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent> encoder) void
void
setMaxBatchSize
(int maxBatchSize) void
setPublishPeriod
(long publishPeriod) void
setQueueSize
(int queueSize) void
void
setSubject
(String subject) void
void
start()
void
stop()
Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
OracleCloudAppender
public OracleCloudAppender()
-
-
Method Details
-
getQueueSize
public int getQueueSize() -
setQueueSize
public void setQueueSize(int queueSize) -
getPublishPeriod
public long getPublishPeriod() -
setPublishPeriod
public void setPublishPeriod(long publishPeriod) -
addBlackListLoggerName
-
getLogId
-
setLogId
-
getSource
-
setSource
-
getSubject
-
setSubject
-
getMaxBatchSize
public int getMaxBatchSize() -
setMaxBatchSize
public void setMaxBatchSize(int maxBatchSize) -
getType
-
setType
-
start
public void start()- Specified by:
start
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
start
in classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
stop
public void stop()- Specified by:
stop
in interfacech.qos.logback.core.spi.LifeCycle
- Overrides:
stop
in classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent eventObject) - Specified by:
append
in classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
getEncoder
public ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent> getEncoder() -
setEncoder
public void setEncoder(ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent> encoder) -
addAppender
public void addAppender(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> newAppender) - Specified by:
addAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
iteratorForAppenders
public Iterator<ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>> iteratorForAppenders()- Specified by:
iteratorForAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
getAppender
public ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> getAppender(String name) - Specified by:
getAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
isAttached
public boolean isAttached(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) - Specified by:
isAttached
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()- Specified by:
detachAndStopAllAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
detachAppender
public boolean detachAppender(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender) - Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-
detachAppender
- Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
-