Log

public final class Log

An utility class to enable changing logging configuration such as the logging level.

Author:Manoel Campos da Silva Filho

Methods

setLevel

public static void setLevel(Logger logger, Level level)

Sets the logging Level for a given LOGGER instance. You can enable just a specific type of log messages by using, for instance, Level.WARN value. To completely disable the given LOGGER, use Level.OFF.

Parameters:
  • level – the logging level to set

setLevel

public static void setLevel(Level level)

Sets the logging Level for all LOGGER instances. You can enable just a specific type of log messages by using, for instance, Level.WARN value. To completely disable logging, use Level.OFF.

Parameters:
  • level – the logging level to set