public class Log4jHelper
extends java.lang.Object
Constructor and Description |
---|
Log4jHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
configureDefaultLogger() |
static void |
createDefaultLogger() |
static void |
createDefaultLogger(java.lang.String _log4jconf) |
static void |
loudenUp(java.lang.Class loggerClazz)
Reverts the log output settings of a given logger to their original state, effectively "louder" than the quietened down state.
|
static void |
quietenDown(java.lang.Class loggerClazz)
Temporarily suppresses or "quiets down" the log output of a given logger, used to hide unwanted log messages,
typically those related to expected errors or issues.
|
static void |
quietenDown(java.lang.Class loggerClazz,
org.apache.log4j.Level newLevel) |
public static void createDefaultLogger()
public static void createDefaultLogger(java.lang.String _log4jconf)
public static void configureDefaultLogger()
public static void quietenDown(java.lang.Class loggerClazz)
loggerClazz
- The class associated with the logger to quiet down.newLevel
- The log level to set temporarily (defaults to Level.FATAL).public static void quietenDown(java.lang.Class loggerClazz, org.apache.log4j.Level newLevel)
public static void loudenUp(java.lang.Class loggerClazz)
loggerClazz
- The class associated with the logger to return to normal logging levels.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.