Package io.microsphere.logging.jdk
Class JavaLogging
- java.lang.Object
-
- io.microsphere.logging.jdk.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.LoggingThe JavaLogging- 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_LEVELSAll Logging Levels : "OFF", "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST", "ALL"static intPRIORITYThe priority ofJavaLoggingstatic java.lang.StringROOT_LOGGER_NAMEThe root logger name : ""
-
Constructor Summary
Constructors Constructor Description JavaLogging()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLoggerLevel(java.lang.String loggerName)java.util.List<java.lang.String>getLoggerNames()java.lang.StringgetName()java.lang.StringgetParentLoggerName(java.lang.String loggerName)intgetPriority()java.lang.StringgetRootLoggerName()java.util.Set<java.lang.String>getSupportedLoggingLevels()voidsetLoggerLevel(java.lang.String loggerName, java.lang.String levelName)
-
-
-
Field Detail
-
ROOT_LOGGER_NAME
public static final java.lang.String ROOT_LOGGER_NAME
The root logger name : ""- See Also:
- Constant Field Values
-
PRIORITY
public static final int PRIORITY
The priority ofJavaLogging- 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
-
-
Method Detail
-
getRootLoggerName
public java.lang.String getRootLoggerName()
- Specified by:
getRootLoggerNamein interfaceio.microsphere.logging.Logging
-
getLoggerNames
public java.util.List<java.lang.String> getLoggerNames()
- Specified by:
getLoggerNamesin interfaceio.microsphere.logging.Logging
-
getSupportedLoggingLevels
public java.util.Set<java.lang.String> getSupportedLoggingLevels()
- Specified by:
getSupportedLoggingLevelsin interfaceio.microsphere.logging.Logging
-
getLoggerLevel
public java.lang.String getLoggerLevel(java.lang.String loggerName)
- Specified by:
getLoggerLevelin interfaceio.microsphere.logging.Logging
-
setLoggerLevel
public void setLoggerLevel(java.lang.String loggerName, java.lang.String levelName)- Specified by:
setLoggerLevelin interfaceio.microsphere.logging.Logging
-
getParentLoggerName
public java.lang.String getParentLoggerName(java.lang.String loggerName)
- Specified by:
getParentLoggerNamein interfaceio.microsphere.logging.Logging
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceio.microsphere.logging.Logging
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceio.microsphere.lang.Prioritized
-
-