Package org.springframework.boot.logging
Class LoggerConfiguration.LevelConfiguration
java.lang.Object
org.springframework.boot.logging.LoggerConfiguration.LevelConfiguration
- Enclosing class:
- LoggerConfiguration
Logger level configuration.
- Since:
- 2.7.13
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getLevel()
Return the actual level value if possible.getName()
Return the name of the level.int
hashCode()
boolean
isCustom()
Return if this is a custom level and cannot be represented byLogLevel
.Create a newLoggerConfiguration.LevelConfiguration
instance of the givenLogLevel
.Create a newLoggerConfiguration.LevelConfiguration
instance for a custom level name.toString()
-
Method Details
-
getName
Return the name of the level.- Returns:
- the level name
-
getLevel
Return the actual level value if possible.- Returns:
- the level value
- Throws:
IllegalStateException
- if this is acustom
level
-
isCustom
public boolean isCustom()Return if this is a custom level and cannot be represented byLogLevel
.- Returns:
- if this is a custom level
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create a newLoggerConfiguration.LevelConfiguration
instance of the givenLogLevel
.- Parameters:
logLevel
- the log level- Returns:
- a new
LoggerConfiguration.LevelConfiguration
instance
-
ofCustom
Create a newLoggerConfiguration.LevelConfiguration
instance for a custom level name.- Parameters:
name
- the log level name- Returns:
- a new
LoggerConfiguration.LevelConfiguration
instance
-