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 protected
NoOpLogger(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config(String msg)
void
config(Supplier<String> msgSupplier)
void
entering(String sourceClass, String sourceMethod)
void
entering(String sourceClass, String sourceMethod, Object param1)
void
entering(String sourceClass, String sourceMethod, Object[] params)
void
exiting(String sourceClass, String sourceMethod)
void
exiting(String sourceClass, String sourceMethod, Object result)
void
fine(String msg)
void
fine(Supplier<String> msgSupplier)
void
finer(String msg)
void
finer(Supplier<String> msgSupplier)
void
finest(String msg)
void
finest(Supplier<String> msgSupplier)
Level
getLevel()
void
info(String msg)
void
info(Supplier<String> msgSupplier)
boolean
isLoggable(Level level)
void
log(Level level, String msg)
void
log(Level level, String msg, Object param1)
void
log(Level level, String msg, Object[] params)
void
log(Level level, String msg, Throwable thrown)
void
log(Level level, Throwable thrown, Supplier<String> msgSupplier)
void
log(Level level, Supplier<String> msgSupplier)
void
log(LogRecord record)
void
logp(Level level, String sourceClass, String sourceMethod, String msg)
void
logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)
void
logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)
void
logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
void
logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier<String> msgSupplier)
void
logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)
void
logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
void
logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
void
logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
void
logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
void
logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params)
void
logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)
void
setLevel(Level newLevel)
void
severe(String msg)
void
severe(Supplier<String> msgSupplier)
void
throwing(String sourceClass, String sourceMethod, Throwable thrown)
void
warning(String msg)
void
warning(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:
setLevel
in classLogger
- Throws:
SecurityException
-
isLoggable
public boolean isLoggable(Level level)
- Overrides:
isLoggable
in classLogger
-
-