Package com.thingworx.logging
Class LogUtilities
- java.lang.Object
-
- com.thingworx.logging.LogUtilities
-
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class LogUtilities extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPLICATION_LOG
static java.lang.Integer
DEFAULT_TOTAL_SIZE_CAP_IN_GB
static java.lang.Integer
MAX_FILE_HISTORY
static java.lang.Integer
MAX_FILE_SIZE_IN_KB
static java.lang.Integer
MAX_TOTAL_SIZE_CAP_IN_GB
static java.lang.String
THINGWORX_ROOT_LOGGER
-
Constructor Summary
Constructors Constructor Description LogUtilities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.qos.logback.classic.Logger
getApplicationLogger(java.lang.Class<?> subLoggerClass)
ch.qos.logback.classic.Logger
getApplicationLogger(java.lang.Class<?> baseClass, java.lang.String subLoggerName)
ch.qos.logback.classic.Logger
getApplicationLogger(java.lang.String subLoggerName)
ch.qos.logback.classic.Logger
getCommunicationLogger(java.lang.Class<?> subLoggerClass)
ch.qos.logback.classic.Logger
getCommunicationLogger(java.lang.String subLoggerName)
ch.qos.logback.classic.Logger
getConfigurationLogger(java.lang.Class<?> subLoggerClass)
ch.qos.logback.classic.Logger
getConfigurationLogger(java.lang.String subLoggerName)
static LogUtilities
getInstance()
ch.qos.logback.classic.Logger
getScriptLogger(java.lang.Class<?> subLoggerClass)
ch.qos.logback.classic.Logger
getScriptLogger(java.lang.String subLoggerName)
ch.qos.logback.classic.Logger
getSecurityLogger(java.lang.Class<?> subLoggerClass)
ch.qos.logback.classic.Logger
getSecurityLogger(java.lang.String subLoggerName)
static void
logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x)
static void
logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, boolean dumpStack)
static void
logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg)
static void
logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg, boolean dumpStack)
static void
logInstanceDebug(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
static void
logInstanceDebug(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
static void
logInstanceError(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
static void
logInstanceError(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
static void
logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x)
static void
logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, boolean dumpStack)
static void
logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg)
static void
logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg, boolean dumpStack)
static void
logInstanceInfo(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
static void
logInstanceInfo(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
static void
logInstanceTrace(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
static void
logInstanceTrace(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
static void
logInstanceWarn(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
static void
logInstanceWarn(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
static void
setLoggerLevel(java.lang.String className, ch.qos.logback.classic.Level logLevel)
-
-
-
Field Detail
-
THINGWORX_ROOT_LOGGER
public static final java.lang.String THINGWORX_ROOT_LOGGER
- See Also:
- Constant Field Values
-
APPLICATION_LOG
public static final java.lang.String APPLICATION_LOG
- See Also:
- Constant Field Values
-
MAX_FILE_HISTORY
public static final java.lang.Integer MAX_FILE_HISTORY
-
MAX_FILE_SIZE_IN_KB
public static final java.lang.Integer MAX_FILE_SIZE_IN_KB
-
MAX_TOTAL_SIZE_CAP_IN_GB
public static final java.lang.Integer MAX_TOTAL_SIZE_CAP_IN_GB
-
DEFAULT_TOTAL_SIZE_CAP_IN_GB
public static final java.lang.Integer DEFAULT_TOTAL_SIZE_CAP_IN_GB
-
-
Method Detail
-
getInstance
@ThingworxExtensionApiMethod(since={6,6}) public static LogUtilities getInstance()
-
logInstanceExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x)
-
logInstanceExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg)
-
logInstanceExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, boolean dumpStack)
-
logInstanceExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceExceptionDetails(java.lang.String instanceName, java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg, boolean dumpStack)
-
logInstanceError
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceError(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
-
logInstanceError
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceError(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
-
logExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x)
-
logExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg)
-
logExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, boolean dumpStack)
-
logExceptionDetails
@ThingworxExtensionApiMethod(since={6,6}) public static void logExceptionDetails(java.lang.Class<?> loggerClass, java.lang.Throwable x, java.lang.String msg, boolean dumpStack)
-
logInstanceWarn
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceWarn(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
-
logInstanceWarn
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceWarn(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
-
logInstanceInfo
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceInfo(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
-
logInstanceInfo
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceInfo(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
-
logInstanceDebug
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceDebug(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
-
logInstanceDebug
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceDebug(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
-
logInstanceTrace
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceTrace(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg)
-
logInstanceTrace
@ThingworxExtensionApiMethod(since={6,6}) public static void logInstanceTrace(java.lang.String instanceName, org.slf4j.Logger logger, java.lang.String msg, java.lang.Object... params)
-
setLoggerLevel
@ThingworxExtensionApiMethod(since={6,6}) public static void setLoggerLevel(java.lang.String className, ch.qos.logback.classic.Level logLevel)
-
getApplicationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getApplicationLogger(java.lang.Class<?> subLoggerClass)
-
getApplicationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getApplicationLogger(java.lang.String subLoggerName)
-
getApplicationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getApplicationLogger(java.lang.Class<?> baseClass, java.lang.String subLoggerName)
-
getConfigurationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getConfigurationLogger(java.lang.Class<?> subLoggerClass)
-
getConfigurationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getConfigurationLogger(java.lang.String subLoggerName)
-
getSecurityLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getSecurityLogger(java.lang.Class<?> subLoggerClass)
-
getSecurityLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getSecurityLogger(java.lang.String subLoggerName)
-
getCommunicationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getCommunicationLogger(java.lang.Class<?> subLoggerClass)
-
getCommunicationLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getCommunicationLogger(java.lang.String subLoggerName)
-
getScriptLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getScriptLogger(java.lang.Class<?> subLoggerClass)
-
getScriptLogger
@ThingworxExtensionApiMethod(since={6,6}) public ch.qos.logback.classic.Logger getScriptLogger(java.lang.String subLoggerName)
-
-