Class SnowLoggerFactory


  • public class SnowLoggerFactory
    extends 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 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​(String string)
        Return a logger named according to the name parameter.
        Parameters:
        string - the name of the logger
        Returns:
        logger
      • getLogger

        public static org.slf4j.Logger getLogger​(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