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