Class JavaLogging

  • All Implemented Interfaces:
    io.microsphere.lang.Prioritized, io.microsphere.logging.Logging, java.lang.Comparable<io.microsphere.lang.Prioritized>

    public class JavaLogging
    extends java.lang.Object
    implements io.microsphere.logging.Logging
    The Java Logging
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Logging, LoggingMXBean
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Set<java.lang.String> ALL_LEVELS
      All Logging Levels : "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "ALL"
      static int PRIORITY
      The priority of JavaLogging
      static java.lang.String ROOT_LOGGER_NAME
      The root logger name : ""
      • Fields inherited from interface io.microsphere.lang.Prioritized

        COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaLogging()  
    • Field Detail

      • ROOT_LOGGER_NAME

        public static final java.lang.String ROOT_LOGGER_NAME
        The root logger name : ""
        See Also:
        Constant Field Values
      • ALL_LEVELS

        public static final java.util.Set<java.lang.String> ALL_LEVELS
        All Logging Levels : "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "ALL"
        See Also:
        Level
    • Constructor Detail

      • JavaLogging

        public JavaLogging()
    • Method Detail

      • getRootLoggerName

        public java.lang.String getRootLoggerName()
        Specified by:
        getRootLoggerName in interface io.microsphere.logging.Logging
      • getLoggerNames

        public java.util.List<java.lang.String> getLoggerNames()
        Specified by:
        getLoggerNames in interface io.microsphere.logging.Logging
      • getSupportedLoggingLevels

        public java.util.Set<java.lang.String> getSupportedLoggingLevels()
        Specified by:
        getSupportedLoggingLevels in interface io.microsphere.logging.Logging
      • getLoggerLevel

        public java.lang.String getLoggerLevel​(java.lang.String loggerName)
        Specified by:
        getLoggerLevel in interface io.microsphere.logging.Logging
      • setLoggerLevel

        public void setLoggerLevel​(java.lang.String loggerName,
                                   java.lang.String levelName)
        Specified by:
        setLoggerLevel in interface io.microsphere.logging.Logging
      • getParentLoggerName

        public java.lang.String getParentLoggerName​(java.lang.String loggerName)
        Specified by:
        getParentLoggerName in interface io.microsphere.logging.Logging
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.microsphere.logging.Logging
      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface io.microsphere.lang.Prioritized