Uses of Class
org.apache.log4j.Level
Packages that use Level
Package
Description
The main log4j package.
This package is used internally.
Provides classes implementing format specifiers in conversion patterns.
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
Contains various appenders, filters and other odds and ends.
-
Uses of Level in org.apache.log4j
Fields in org.apache.log4j declared as LevelModifier and TypeFieldDescriptionstatic final Level
Level.ALL
TheALL
has the lowest possible rank and is intended to turn on all logging.static final Level
Level.DEBUG
TheDEBUG
Level designates fine-grained informational events that are most useful to debug an application.static final Level
Level.ERROR
TheERROR
level designates error events that might still allow the application to continue running.static final Level
Level.FATAL
TheFATAL
level designates very severe error events that will presumably lead the application to abort.static final Level
Level.INFO
TheINFO
level designates informational messages that highlight the progress of the application at coarse-grained level.protected Level
Category.level
The assigned level of this category.static final Level
Level.OFF
TheOFF
has the highest possible rank and is intended to turn off logging.static final Level
Level.TRACE
TheTRACE
Level designates finer-grained informational events than theDEBUG
level.protected static final Level
LogXF.TRACE
Trace level.static final Level
Level.WARN
TheWARN
level designates potentially harmful situations.Methods in org.apache.log4j that return LevelModifier and TypeMethodDescriptionCategory.getEffectiveLevel()
Starting from this category, search the category hierarchy for a non-null level and return it.final Level
Category.getLevel()
Returns the assignedLevel
, if any, for this Category.final Level
Category.getPriority()
Deprecated.Hierarchy.getThreshold()
Returns aLevel
representation of theenable
state.static Level
Level.toLevel
(int val) Convert an integer passed as argument to a level.static Level
Convert an integer passed as argument to a level.static Level
Convert the string passed as argument to a level.static Level
Convert the string passed as argument to a level.Methods in org.apache.log4j with parameters of type LevelModifier and TypeMethodDescriptionstatic void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specifed level.static void
LogMF.log
(Logger logger, Level level, String pattern, Object arg0, Object arg1, Object arg2, Object arg3) Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message at specifed level.static void
LogSF.log
(Logger logger, Level level, String pattern, Object arg0, Object arg1, Object arg2, Object arg3) Log a parameterized message at specified level.static void
Log a parameterized message at specified level.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
LogMF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1) Log a parameterized message using a pattern from a resource bundle.static void
LogMF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1, Object param2) Log a parameterized message using a pattern from a resource bundle.static void
LogMF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1, Object param2, Object param3) Log a parameterized message using a pattern from a resource bundle.static void
LogMF.logrb
(Logger logger, Level level, Throwable t, String bundleName, String key, Object[] parameters) Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
Log a parameterized message using a pattern from a resource bundle.static void
LogSF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1) Log a parameterized message using a pattern from a resource bundle.static void
LogSF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1, Object param2) Log a parameterized message using a pattern from a resource bundle.static void
LogSF.logrb
(Logger logger, Level level, String bundleName, String key, Object param0, Object param1, Object param2, Object param3) Log a parameterized message using a pattern from a resource bundle.static void
LogSF.logrb
(Logger logger, Level level, Throwable t, String bundleName, String key, Object[] parameters) Log a parameterized message using a pattern from a resource bundle.void
Set the level of this Category.void
Hierarchy.setThreshold
(Level l) Enable logging for logging requests with levell
or higher.static Level
Convert an integer passed as argument to a level.static Level
Convert the string passed as argument to a level. -
Uses of Level in org.apache.log4j.helpers
Subclasses of Level in org.apache.log4j.helpersModifier and TypeClassDescriptionclass
An extension of the Level class that provides support for java.util.logging Levels.Methods in org.apache.log4j.helpers that return LevelModifier and TypeMethodDescriptionstatic Level
Converts a standard or custom priority level to a Level object.static Level
UtilLoggingLevel.toLevel
(int val) Gets level matching numeric value.static Level
Get level with specified symbolic name.static Level
Get level with specified symbolic name.Methods in org.apache.log4j.helpers with parameters of type Level -
Uses of Level in org.apache.log4j.pattern
Methods in org.apache.log4j.pattern that return LevelConstructors in org.apache.log4j.pattern with parameters of type LevelModifierConstructorDescriptionLogEvent
(String fqnOfCategoryClass, Logger logger, long timeStamp, Level level, Object message, String threadName, ThrowableInformation throwable, String ndc, LocationInfo info, Map properties) Create new instance. -
Uses of Level in org.apache.log4j.spi
Methods in org.apache.log4j.spi that return LevelModifier and TypeMethodDescriptionfinal Level
RootCategory.getChainedLevel()
Deprecated.Return the assigned level value without walking the category hierarchy.final Level
RootLogger.getChainedLevel()
Return the assigned level value without walking the logger hierarchy.NOPLogger.getEffectiveLevel()
Starting from this category, search the category hierarchy for a non-null level and return it.LoggingEvent.getLevel()
Return the level of this event.LoggerRepository.getThreshold()
Get the repository-wide threshold.NOPLoggerRepository.getThreshold()
Get the repository-wide threshold.Methods in org.apache.log4j.spi with parameters of type LevelModifier and TypeMethodDescriptionvoid
Set the level of this Category.final void
Deprecated.Setting a null value to the level of the root category may have catastrophic results.final void
Setting a null value to the level of the root logger may have catastrophic results.final void
RootCategory.setPriority
(Level level) Deprecated.void
LoggerRepository.setThreshold
(Level level) Set the repository-wide threshold.void
NOPLoggerRepository.setThreshold
(Level level) Set the repository-wide threshold.Constructors in org.apache.log4j.spi with parameters of type LevelModifierConstructorDescriptionLoggingEvent
(String fqnOfCategoryClass, Category logger, long timeStamp, Level level, Object message, String threadName, ThrowableInformation throwable, String ndc, LocationInfo info, Map properties) Create new instance.RootCategory
(Level level) Deprecated.The root category names itself as "root".RootLogger
(Level level) The root logger names itself as "root". -
Uses of Level in org.apache.log4j.varia
Methods in org.apache.log4j.varia that return LevelModifier and TypeMethodDescriptionLevelRangeFilter.getLevelMax()
Get the value of theLevelMax
option.LevelRangeFilter.getLevelMin()
Get the value of theLevelMin
option.Methods in org.apache.log4j.varia with parameters of type LevelModifier and TypeMethodDescriptionvoid
LevelRangeFilter.setLevelMax
(Level levelMax) Set theLevelMax
option.void
LevelRangeFilter.setLevelMin
(Level levelMin) Set theLevelMin
option.
Category.getLevel()
instead.