Package org.apache.logging.log4j.jul
Class NoOpLogger
- java.lang.Object
-
- java.util.logging.Logger
-
- org.apache.logging.log4j.jul.NoOpLogger
-
public class NoOpLogger extends Logger
Dummy version of a java.util.Logger.
-
-
Field Summary
-
Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNoOpLogger(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig(String msg)voidconfig(Supplier<String> msgSupplier)voidentering(String sourceClass, String sourceMethod)voidentering(String sourceClass, String sourceMethod, Object param1)voidentering(String sourceClass, String sourceMethod, Object[] params)voidexiting(String sourceClass, String sourceMethod)voidexiting(String sourceClass, String sourceMethod, Object result)voidfine(String msg)voidfine(Supplier<String> msgSupplier)voidfiner(String msg)voidfiner(Supplier<String> msgSupplier)voidfinest(String msg)voidfinest(Supplier<String> msgSupplier)LevelgetLevel()voidinfo(String msg)voidinfo(Supplier<String> msgSupplier)booleanisLoggable(Level level)voidlog(Level level, String msg)voidlog(Level level, String msg, Object param1)voidlog(Level level, String msg, Object[] params)voidlog(Level level, String msg, Throwable thrown)voidlog(Level level, Throwable thrown, Supplier<String> msgSupplier)voidlog(Level level, Supplier<String> msgSupplier)voidlog(LogRecord record)voidlogp(Level level, String sourceClass, String sourceMethod, String msg)voidlogp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)voidlogp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)voidlogp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)voidlogp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier)voidlogp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)voidlogrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)voidlogrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)voidlogrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)voidlogrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)voidlogrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params)voidlogrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)voidsetLevel(Level newLevel)voidsevere(String msg)voidsevere(Supplier<String> msgSupplier)voidthrowing(String sourceClass, String sourceMethod, Throwable thrown)voidwarning(String msg)voidwarning(Supplier<String> msgSupplier)-
Methods inherited from class java.util.logging.Logger
addHandler, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getHandlers, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, logrb, logrb, removeHandler, setFilter, setParent, setResourceBundle, setUseParentHandlers
-
-
-
-
Constructor Detail
-
NoOpLogger
protected NoOpLogger(String name)
-
-
Method Detail
-
logp
public void logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)
-
logp
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)
-
logp
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)
-
logp
public void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
-
logp
public void logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
-
logrb
public void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)
-
setLevel
public void setLevel(Level newLevel) throws SecurityException
- Overrides:
setLevelin classLogger- Throws:
SecurityException
-
isLoggable
public boolean isLoggable(Level level)
- Overrides:
isLoggablein classLogger
-
-