Class SFLoggerFactory


  • public class SFLoggerFactory
    extends Object
    Used to create SFLogger instance

    Created by hyu on 11/17/16.

    • Constructor Detail

      • SFLoggerFactory

        public SFLoggerFactory()
    • Method Detail

      • getLogger

        public static SFLogger getLogger​(Class<?> clazz)
        Parameters:
        clazz - Class type that the logger is instantiated
        Returns:
        An SFLogger instance given the name of the class
      • getLogger

        public static SFLogger getLogger​(String name)
        A replacement for getLogger function, whose parameter is Class<?>, when Class<?> is inaccessible. For example, the name we have is an alias name of a class, we can't get the correct Class<?> by the given name.
        Parameters:
        name - name to indicate the class (might be different with the class name) that the logger is instantiated
        Returns:
        An SFLogger instance given the name