Top Description Fields Constructors Methods
org.apache.logging.log4j.jul

public Class NoOpLogger

extends Logger
Class Inheritance
Imports
java.util.ResourceBundle, java.util.function.Supplier, java.util.logging.Level, .LogRecord, .Logger

Dummy version of a java.util.Logger.

Field Summary

Inherited from java.util.logging.Logger:
globalGLOBAL_LOGGER_NAME

Constructor Summary

AccessConstructor and Description
protected
NoOpLogger(final String name)

Method Summary

Modifier and TypeMethod and Description
public void
config(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.config.

Log a CONFIG message.

public void
config(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.config.

Log a CONFIG message, which is only to be constructed if the logging level is such that the message will actually be logged.

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
)

Overrides java.util.logging.Logger.entering.

Log a method entry.

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
,
final Object
parameter to the method being entered
param1
)

Overrides java.util.logging.Logger.entering.

Log a method entry, with one parameter.

public void
entering(final String
name of class that issued the logging request
sourceClass
,
final String
name of method that is being entered
sourceMethod
,
final Object[]
array of parameters to the method being entered
params
)

Overrides java.util.logging.Logger.entering.

Log a method entry, with an array of parameters.

public void
exiting(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method
sourceMethod
)

Overrides java.util.logging.Logger.exiting.

Log a method return.

public void
exiting(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method
sourceMethod
,
final Object
Object that is being returned
result
)

Overrides java.util.logging.Logger.exiting.

Log a method return, with result object.

public void
fine(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.fine.

Log a FINE message.

public void
fine(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.fine.

Log a FINE message, which is only to be constructed if the logging level is such that the message will actually be logged.

public void
finer(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.finer.

Log a FINER message.

public void
finer(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.finer.

Log a FINER message, which is only to be constructed if the logging level is such that the message will actually be logged.

public void
finest(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.finest.

Log a FINEST message.

public void
finest(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.finest.

Log a FINEST message, which is only to be constructed if the logging level is such that the message will actually be logged.

public Level
getLevel()

Overrides java.util.logging.Logger.getLevel.

Get the log Level that has been specified for this Logger.

public void
info(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.info.

Log an INFO message.

public void
info(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.info.

Log a INFO message, which is only to be constructed if the logging level is such that the message will actually be logged.

public boolean
isLoggable(final Level
a message logging level
level
)

Overrides java.util.logging.Logger.isLoggable.

Check if a message of the given level would actually be logged by this logger.

public void
log(final LogRecord
the LogRecord to be published
record
)

Overrides java.util.logging.Logger.log.

Log a LogRecord.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.log.

Log a message, with no arguments.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.log.

Log a message, which is only to be constructed if the logging level is such that the message will actually be logged.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
parameter to the message
param1
)

Overrides java.util.logging.Logger.log.

Log a message, with one object parameter.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
array of parameters to the message
params
)

Overrides java.util.logging.Logger.log.

Log a message, with an array of object arguments.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.log.

Log a message, with associated Throwable information.

public void
log(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final Throwable
Throwable associated with log message.
thrown
,
final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.log.

Log a lazily constructed message, with associated Throwable information.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with no arguments.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.logp.

Log a lazily constructed message, specifying source class and method, with no arguments.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
Parameter to the log message.
param1
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with a single object parameter to the log message.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
Array of parameters to the message
params
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with an array of object arguments.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.logp.

Log a message, specifying source class and method, with associated Throwable information.

public void
logp(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final Throwable
Throwable associated with log message.
thrown
,
final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.logp.

Log a lazily constructed message, specifying source class and method, with associated Throwable information.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name with no arguments.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Object
Parameter to the log message.
param1
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null.
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Object[]
Array of parameters to the message
params
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
Name of the class that issued the logging request
sourceClass
,
final String
Name of the method that issued the logging request
sourceMethod
,
final ResourceBundle
Resource bundle to localize msg, can be null.
bundle
,
final String
The string message (or a key in the message catalog)
msg
,
final Object...
Parameters to the message (optional, may be none).
params
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle, with an optional list of message parameters.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
name of class that issued the logging request
sourceClass
,
final String
name of method that issued the logging request
sourceMethod
,
final String
name of resource bundle to localize msg, can be null
bundleName
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with log message.
thrown
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

public void
logrb(final Level
One of the message level identifiers, e.g., SEVERE
level
,
final String
Name of the class that issued the logging request
sourceClass
,
final String
Name of the method that issued the logging request
sourceMethod
,
final ResourceBundle
Resource bundle to localize msg, can be null
bundle
,
final String
The string message (or a key in the message catalog)
msg
,
final Throwable
Throwable associated with the log message.
thrown
)

Overrides java.util.logging.Logger.logrb.

Log a message, specifying source class, method, and resource bundle, with associated Throwable information.

public void
setLevel(final Level
the new value for the log level (may be null)
newLevel
)

Overrides java.util.logging.Logger.setLevel.

Set the log level specifying which message levels will be logged by this logger.

public void
severe(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.severe.

Log a SEVERE message.

public void
severe(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.severe.

Log a SEVERE message, which is only to be constructed if the logging level is such that the message will actually be logged.

public void
throwing(final String
name of class that issued the logging request
sourceClass
,
final String
name of the method.
sourceMethod
,
final Throwable
The Throwable that is being thrown.
thrown
)

Overrides java.util.logging.Logger.throwing.

Log throwing an exception.

public void
warning(final String
The string message (or a key in the message catalog)
msg
)

Overrides java.util.logging.Logger.warning.

Log a WARNING message.

public void
warning(final Supplier<String>
A function, which when called, produces the desired log message
msgSupplier
)

Overrides java.util.logging.Logger.warning.

Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged.

Inherited from java.util.logging.Logger:
addHandlergetAnonymousLoggergetAnonymousLoggergetFiltergetGlobalgetHandlersgetLoggergetLoggergetNamegetParentgetResourceBundlegetResourceBundleNamegetUseParentHandlerslogrblogrbremoveHandlersetFiltersetParentsetResourceBundlesetUseParentHandlers