public class JcloudsPersistenceThreadDiscriminator
extends java.lang.Object
implements ch.qos.logback.core.sift.Discriminator<ch.qos.logback.classic.spi.ILoggingEvent>
Use a SiftingAppender and refer to the
jcloudsPersistSwitch property. The property's value will be either "jclouds-persister",
for messages logged from the persistence thread, and "jclouds" otherwise.
| Constructor and Description |
|---|
JcloudsPersistenceThreadDiscriminator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDiscriminatingValue(ch.qos.logback.classic.spi.ILoggingEvent o) |
java.lang.String |
getKey() |
boolean |
isStarted() |
void |
start() |
void |
stop() |
public JcloudsPersistenceThreadDiscriminator()
public java.lang.String getDiscriminatingValue(ch.qos.logback.classic.spi.ILoggingEvent o)
getDiscriminatingValue in interface ch.qos.logback.core.sift.Discriminator<ch.qos.logback.classic.spi.ILoggingEvent>public java.lang.String getKey()
getKey in interface ch.qos.logback.core.sift.Discriminator<ch.qos.logback.classic.spi.ILoggingEvent>public void start()
start in interface ch.qos.logback.core.spi.LifeCyclepublic void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclepublic boolean isStarted()
isStarted in interface ch.qos.logback.core.spi.LifeCycle