public class BrooklynLogging
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BrooklynLogging.LoggingLevel
For convenience here, since SLF4J does not define such an enum
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REST |
static java.lang.String |
SSH_IO |
Constructor and Description |
---|
BrooklynLogging() |
Modifier and Type | Method and Description |
---|---|
static BrooklynLogging.LoggingLevel |
levelDebugOrTraceIfReadOnly(Entity entity)
as
#levelDependendingIfReadOnly(Entity) with BrooklynLogging.LoggingLevel.DEBUG as the default,
but BrooklynLogging.LoggingLevel.TRACE for read-only |
static BrooklynLogging.LoggingLevel |
levelDependingIfReadOnly(Entity entity,
BrooklynLogging.LoggingLevel levelIfWriting,
BrooklynLogging.LoggingLevel levelIfReadOnly,
BrooklynLogging.LoggingLevel levelIfUnknown)
returns one of three log levels depending on the read-only status of the entity;
unknown should only be the case very early in the management cycle
|
static void |
log(org.slf4j.Logger logger,
BrooklynLogging.LoggingLevel level,
java.lang.String message,
java.lang.Object... args)
As methods on
Logger but taking the level as an argument |
static void |
log(org.slf4j.Logger logger,
BrooklynLogging.LoggingLevel level,
java.lang.String message,
java.lang.Throwable t)
As methods on
Logger but taking the level as an argument |
public static final java.lang.String SSH_IO
public static final java.lang.String REST
public static final void log(org.slf4j.Logger logger, BrooklynLogging.LoggingLevel level, java.lang.String message, java.lang.Object... args)
Logger
but taking the level as an argumentpublic static final void log(org.slf4j.Logger logger, BrooklynLogging.LoggingLevel level, java.lang.String message, java.lang.Throwable t)
Logger
but taking the level as an argumentpublic static BrooklynLogging.LoggingLevel levelDependingIfReadOnly(Entity entity, BrooklynLogging.LoggingLevel levelIfWriting, BrooklynLogging.LoggingLevel levelIfReadOnly, BrooklynLogging.LoggingLevel levelIfUnknown)
public static BrooklynLogging.LoggingLevel levelDebugOrTraceIfReadOnly(Entity entity)
#levelDependendingIfReadOnly(Entity)
with BrooklynLogging.LoggingLevel.DEBUG
as the default,
but BrooklynLogging.LoggingLevel.TRACE
for read-only