Package com.snowbound.common.utils
Class SnowLoggerFactory
- java.lang.Object
-
- com.snowbound.common.utils.SnowLoggerFactory
-
public class SnowLoggerFactory extends java.lang.Object
Use this class to obtain a reference to the SLF4J logger. Using this factory instead of the default SLF4J LoggerFactory allows some VirtualViewer debugging features to function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.slf4j.Logger
getLogger(java.lang.Class logClass)
Return a logger named corresponding to the class passed as a parameter.static org.slf4j.Logger
getLogger(java.lang.String string)
Return a logger named according to thename
parameter.static StructuredLogger
getStructuredLogger(java.lang.Class logClass)
static void
setOverrideLoggingForCurrentThread(boolean override)
This method causes the current thread to log all messages at the highest priority rather than their original assigned priority.
-
-
-
Method Detail
-
setOverrideLoggingForCurrentThread
public static void setOverrideLoggingForCurrentThread(boolean override)
This method causes the current thread to log all messages at the highest priority rather than their original assigned priority. This allows debugging specific requests without globally allowing a more permissive logging priority.- Parameters:
override
- true to log all messages in this thread at the highest priority; false to use their default priority
-
getLogger
public static org.slf4j.Logger getLogger(java.lang.String string)
Return a logger named according to thename
parameter.- Parameters:
string
- the name of the logger- Returns:
- logger
-
getLogger
public static org.slf4j.Logger getLogger(java.lang.Class logClass)
Return a logger named corresponding to the class passed as a parameter.- Parameters:
logClass
- the returned logger will be named after this class- Returns:
- logger
-
getStructuredLogger
public static StructuredLogger getStructuredLogger(java.lang.Class logClass)
-
-