Uses of Class
org.apache.logging.log4j.Level

Packages that use Level
org.apache.logging.log4j Public API for Log4j 2. 
org.apache.logging.log4j.simple Simple logging implementation. 
org.apache.logging.log4j.spi Internal interfaces and classes to be used by authors of logging implementations or for internal use by API classes. 
org.apache.logging.log4j.status Status API for Log4j 2.0. 
 

Uses of Level in org.apache.logging.log4j
 

Fields in org.apache.logging.log4j declared as Level
static Level Level.ALL
          All events should be logged.
static Level Level.DEBUG
          A general debugging event.
static Level Level.ERROR
          An error in the application, possibly recoverable.
static Level Level.FATAL
          A severe error that will prevent the application from continuing.
static Level Level.INFO
          An event for informational purposes.
static Level Level.OFF
          No events will be logged.
static Level Level.TRACE
          A fine-grained debug message, typically capturing the flow through the application.
static Level Level.WARN
          An event that might possible lead to an error.
 

Methods in org.apache.logging.log4j that return Level
 Level Level.clone()
           
static Level Level.forName(String name, int intValue)
          Retrieves an existing Level or creates on if it didn't previously exist.
 Level Logger.getLevel()
          Gets the Level associated with the Logger.
static Level Level.getLevel(String name)
          Return the Level associated with the name or null if the Level cannot be found.
static Level Level.toLevel(String sArg)
          Converts the string passed as argument to a level.
static Level Level.toLevel(String name, Level defaultLevel)
          Converts the string passed as argument to a level.
static Level Level.valueOf(String name)
          Return the Level associated with the name.
static Level[] Level.values()
          Return an array of all the Levels that have been registered.
 

Methods in org.apache.logging.log4j that return types with arguments of type Level
 Class<Level> Level.getDeclaringClass()
           
 

Methods in org.apache.logging.log4j with parameters of type Level
 void Logger.catching(Level level, Throwable t)
          Logs an exception or error that has been caught.
 int Level.compareTo(Level other)
           
 boolean Logger.isEnabled(Level level)
          Checks whether this Logger is enabled for the the given Level.
 boolean Logger.isEnabled(Level level, Marker marker)
          Checks whether this logger is enabled at the specified level and an optional Marker.
 boolean Level.isLessSpecificThan(Level level)
          Compares this level against the level passed as an argument and returns true if this level is the same or is less specific.T
 boolean Level.isMoreSpecificThan(Level level)
          Compares this level against the level passed as an argument and returns true if this level is the same or is more specific.
 void Logger.log(Level level, Marker marker, Message msg)
          Logs a message with the specific Marker at the given level.
 void Logger.log(Level level, Marker marker, Message msg, Throwable t)
          Logs a message with the specific Marker at the given level.
 void Logger.log(Level level, Marker marker, Object message)
          Logs a message object with the given level.
 void Logger.log(Level level, Marker marker, Object message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void Logger.log(Level level, Marker marker, String message)
          Logs a message object with the given level.
 void Logger.log(Level level, Marker marker, String message, Object... params)
          Logs a message with parameters at the given level.
 void Logger.log(Level level, Marker marker, String message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void Logger.log(Level level, Message msg)
          Logs a message with the specific Marker at the given level.
 void Logger.log(Level level, Message msg, Throwable t)
          Logs a message with the specific Marker at the given level.
 void Logger.log(Level level, Object message)
          Logs a message object with the given level.
 void Logger.log(Level level, Object message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void Logger.log(Level level, String message)
          Logs a message object with the given level.
 void Logger.log(Level level, String message, Object... params)
          Logs a message with parameters at the given level.
 void Logger.log(Level level, String message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
static void EventLogger.logEvent(StructuredDataMessage msg, Level level)
          Log events and specify the logging level.
 void Logger.printf(Level level, Marker marker, String format, Object... params)
          Logs a formatted message using the specified format string and arguments.
 void Logger.printf(Level level, String format, Object... params)
          Logs a formatted message using the specified format string and arguments.
<T extends Throwable>
T
Logger.throwing(Level level, T t)
          Logs an exception or error to be thrown.
static Level Level.toLevel(String name, Level defaultLevel)
          Converts the string passed as argument to a level.
 

Uses of Level in org.apache.logging.log4j.simple
 

Methods in org.apache.logging.log4j.simple that return Level
 Level SimpleLogger.getLevel()
           
 

Methods in org.apache.logging.log4j.simple with parameters of type Level
 boolean SimpleLogger.isEnabled(Level level, Marker marker, Message msg, Throwable t)
           
 boolean SimpleLogger.isEnabled(Level level, Marker marker, Object msg, Throwable t)
           
 boolean SimpleLogger.isEnabled(Level level, Marker marker, String msg)
           
 boolean SimpleLogger.isEnabled(Level level, Marker marker, String msg, Object... p1)
           
 boolean SimpleLogger.isEnabled(Level level, Marker marker, String msg, Throwable t)
           
 void SimpleLogger.logMessage(String fqcn, Level level, Marker marker, Message msg, Throwable throwable)
           
 void SimpleLogger.setLevel(Level level)
           
 

Constructors in org.apache.logging.log4j.simple with parameters of type Level
SimpleLogger(String name, Level defaultLevel, boolean showLogName, boolean showShortLogName, boolean showDateTime, boolean showContextMap, String dateTimeFormat, MessageFactory messageFactory, PropertiesUtil props, PrintStream stream)
           
 

Uses of Level in org.apache.logging.log4j.spi
 

Methods in org.apache.logging.log4j.spi that return Level
 Level ExtendedLoggerWrapper.getLevel()
           
 

Methods in org.apache.logging.log4j.spi with parameters of type Level
 void AbstractLogger.catching(Level level, Throwable t)
          Logs a Throwable that has been caught.
protected  void AbstractLogger.catching(String fqcn, Level level, Throwable t)
          Logs a Throwable that has been caught with location information.
 boolean AbstractLogger.isEnabled(Level level)
          Checks whether this Logger is enabled for the the given Level.
 boolean AbstractLogger.isEnabled(Level level, Marker marker)
          Checks whether this Logger is enabled for the the given Level.
 boolean ExtendedLoggerWrapper.isEnabled(Level level, Marker marker, Message message, Throwable t)
          Detect if the event would be logged.
 boolean ExtendedLogger.isEnabled(Level level, Marker marker, Message message, Throwable t)
          Determines if logging is enabled.
 boolean ExtendedLoggerWrapper.isEnabled(Level level, Marker marker, Object message, Throwable t)
          Detect if the event would be logged.
 boolean ExtendedLogger.isEnabled(Level level, Marker marker, Object message, Throwable t)
          Determines if logging is enabled.
 boolean ExtendedLoggerWrapper.isEnabled(Level level, Marker marker, String message)
          Detect if the event would be logged.
 boolean ExtendedLogger.isEnabled(Level level, Marker marker, String message)
          Determine if logging is enabled.
 boolean ExtendedLoggerWrapper.isEnabled(Level level, Marker marker, String message, Object... params)
          Detect if the event would be logged.
 boolean ExtendedLogger.isEnabled(Level level, Marker marker, String message, Object... params)
          Determines if logging is enabled.
 boolean ExtendedLoggerWrapper.isEnabled(Level level, Marker marker, String message, Throwable t)
          Detect if the event would be logged.
 boolean ExtendedLogger.isEnabled(Level level, Marker marker, String message, Throwable t)
          Determines if logging is enabled.
 void AbstractLogger.log(Level level, Marker marker, Message msg)
          Logs a message with the specific Marker at the given level.
 void AbstractLogger.log(Level level, Marker marker, Message msg, Throwable t)
          Logs a message with the specific Marker at the given level.
 void AbstractLogger.log(Level level, Marker marker, Object message)
          Logs a message object with the given level.
 void AbstractLogger.log(Level level, Marker marker, Object message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void AbstractLogger.log(Level level, Marker marker, String message)
          Logs a message object with the given level.
 void AbstractLogger.log(Level level, Marker marker, String message, Object... params)
          Logs a message with parameters at the given level.
 void AbstractLogger.log(Level level, Marker marker, String message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void AbstractLogger.log(Level level, Message msg)
          Logs the specified Message at the given level.
 void AbstractLogger.log(Level level, Message msg, Throwable t)
          Logs the specified Message at the given level.
 void AbstractLogger.log(Level level, Object message)
          Logs a message object with the given level.
 void AbstractLogger.log(Level level, Object message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void AbstractLogger.log(Level level, String message)
          Logs a message object with the given level.
 void AbstractLogger.log(Level level, String message, Object... params)
          Logs a message with parameters at the given level.
 void AbstractLogger.log(Level level, String message, Throwable t)
          Logs a message at the given level including the stack trace of the Throwable t passed as parameter.
 void ExtendedLogger.logIfEnabled(String fqcn, Level level, Marker marker, Message message, Throwable t)
          Logs a message if the specified level is active.
 void AbstractLogger.logIfEnabled(String fqcn, Level level, Marker marker, Message msg, Throwable t)
           
 void ExtendedLogger.logIfEnabled(String fqcn, Level level, Marker marker, Object message, Throwable t)
          Logs a message if the specified level is active.
 void AbstractLogger.logIfEnabled(String fqcn, Level level, Marker marker, Object message, Throwable t)
           
 void ExtendedLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message)
          Logs a message if the specified level is active.
 void AbstractLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message)
           
 void ExtendedLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message, Object... params)
          Logs a message if the specified level is active.
 void AbstractLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message, Object... params)
           
 void ExtendedLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message, Throwable t)
          Logs a message if the specified level is active.
 void AbstractLogger.logIfEnabled(String fqcn, Level level, Marker marker, String message, Throwable t)
           
 void ExtendedLoggerWrapper.logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t)
          Always log an event.
 void ExtendedLogger.logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t)
          Always logs a message at the specified level.
protected  void AbstractLogger.logMessage(String fqcn, Level level, Marker marker, Object message, Throwable t)
           
protected  void AbstractLogger.logMessage(String fqcn, Level level, Marker marker, String message)
           
protected  void AbstractLogger.logMessage(String fqcn, Level level, Marker marker, String message, Object... params)
           
protected  void AbstractLogger.logMessage(String fqcn, Level level, Marker marker, String message, Throwable t)
           
 void AbstractLogger.printf(Level level, Marker marker, String format, Object... params)
          Logs a formatted message using the specified format string and arguments.
 void AbstractLogger.printf(Level level, String format, Object... params)
          Logs a formatted message using the specified format string and arguments.
<T extends Throwable>
T
AbstractLogger.throwing(Level level, T t)
          Logs a Throwable to be thrown.
protected
<T extends Throwable>
T
AbstractLogger.throwing(String fqcn, Level level, T t)
          Logs a Throwable to be thrown.
 

Uses of Level in org.apache.logging.log4j.status
 

Methods in org.apache.logging.log4j.status that return Level
 Level StatusLogger.getLevel()
           
 Level StatusData.getLevel()
          Returns the logging level for the event.
 Level StatusListener.getStatusLevel()
          Return the Log Level that this listener wants included.
 Level StatusConsoleListener.getStatusLevel()
          Return the Log Level for which the Listener should receive events.
 

Methods in org.apache.logging.log4j.status with parameters of type Level
 boolean StatusLogger.isEnabled(Level level, Marker marker)
           
 boolean StatusLogger.isEnabled(Level level, Marker marker, Message message, Throwable t)
           
 boolean StatusLogger.isEnabled(Level level, Marker marker, Object message, Throwable t)
           
 boolean StatusLogger.isEnabled(Level level, Marker marker, String message)
           
 boolean StatusLogger.isEnabled(Level level, Marker marker, String message, Object... params)
           
 boolean StatusLogger.isEnabled(Level level, Marker marker, String message, Throwable t)
           
 void StatusLogger.logMessage(String fqcn, Level level, Marker marker, Message msg, Throwable t)
          Add an event.
 void StatusLogger.setLevel(Level level)
           
 void StatusConsoleListener.setLevel(Level level)
          Sets the level to a new value.
 

Constructors in org.apache.logging.log4j.status with parameters of type Level
StatusConsoleListener(Level level)
          Creates the StatusConsoleListener using the supplied Level.
StatusConsoleListener(Level level, PrintStream stream)
          Creates the StatusConsoleListener using the supplied Level.
StatusData(StackTraceElement caller, Level level, Message msg, Throwable t)
          Creates the StatusData object.
 



Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.