Uses of Enum Class
com.log4rich.core.LogLevel
Packages that use LogLevel
Package
Description
-
Uses of LogLevel in com.log4rich
Methods in com.log4rich with parameters of type LogLevelModifier and TypeMethodDescriptionstatic void
Log4Rich.setLoggerLevel
(String loggerName, LogLevel level) Sets a specific logger's level.static void
Log4Rich.setRootLevel
(LogLevel level) Sets the root logger level. -
Uses of LogLevel in com.log4rich.appenders
Methods in com.log4rich.appenders that return LogLevelModifier and TypeMethodDescriptionAppender.getLevel()
Get the minimum log level for this appender.ConsoleAppender.getLevel()
Gets the minimum log level for this appender.RollingFileAppender.getLevel()
Gets the minimum log level for this appender.Methods in com.log4rich.appenders with parameters of type LogLevelModifier and TypeMethodDescriptionboolean
Appender.isLevelEnabled
(LogLevel level) Check if this appender will handle the given level.boolean
ConsoleAppender.isLevelEnabled
(LogLevel level) Checks if the specified log level is enabled for this appender.boolean
RollingFileAppender.isLevelEnabled
(LogLevel level) Checks if the specified log level is enabled for this appender.void
Set the minimum log level for this appender.void
Sets the minimum log level for this appender.void
Sets the minimum log level for this appender. -
Uses of LogLevel in com.log4rich.config
Methods in com.log4rich.config that return LogLevelModifier and TypeMethodDescriptionConfiguration.getConsoleLevel()
Gets the console log level, falling back to root level if not set.Configuration.getFileLevel()
Gets the file log level, falling back to root level if not set.Configuration.getLoggerLevel
(String loggerName) Gets the specific level for a logger, or null if not set.Configuration.getRootLevel()
Gets the root logger level.Methods in com.log4rich.config that return types with arguments of type LogLevelModifier and TypeMethodDescriptionConfiguration.getLoggerLevels()
Gets a copy of all logger-specific levels.Methods in com.log4rich.config with parameters of type LogLevelModifier and TypeMethodDescriptionvoid
Configuration.setLoggerLevel
(String loggerName, LogLevel level) Sets the specific level for a logger.static void
ConfigurationManager.setLoggerLevel
(String loggerName, LogLevel level) Sets a specific logger's level.static void
ConfigurationManager.setRootLevel
(LogLevel level) Sets the root logger level. -
Uses of LogLevel in com.log4rich.core
Methods in com.log4rich.core that return LogLevelModifier and TypeMethodDescriptionstatic LogLevel
LogLevel.fromString
(String level) Parse a string to get the corresponding LogLevel.Logger.getLevel()
Gets the current log level for this logger.static LogLevel
Returns the enum constant of this class with the specified name.static LogLevel[]
LogLevel.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.log4rich.core with parameters of type LogLevelModifier and TypeMethodDescriptionboolean
LogLevel.isGreaterOrEqual
(LogLevel level) Check if this level is enabled for the given level.boolean
Logger.isLevelEnabled
(LogLevel level) Checks if the specified level is enabled for this logger.void
Sets the log level for this logger. -
Uses of LogLevel in com.log4rich.util
Methods in com.log4rich.util that return LogLevelConstructors in com.log4rich.util with parameters of type LogLevelModifierConstructorDescriptionLoggingEvent
(LogLevel level, String message, String loggerName, LocationInfo locationInfo) Creates a new LoggingEvent without an exception.LoggingEvent
(LogLevel level, String message, String loggerName, LocationInfo locationInfo, Throwable throwable) Creates a new LoggingEvent with all parameters.