Top Description Methods
org.apache.logging.log4j.spi

public Interface ExtendedLogger

extends Logger
Known Direct Implementers
org.apache.logging.log4j.spi.AbstractLogger
Imports
org.apache.logging.log4j.Level, .Logger, .Marker, org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.MessageSupplier, .Supplier

Extends the Logger interface with methods that facilitate implementing or extending Loggers. Users should not need to use this interface.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Message
The Message.
message
,
Throwable
A Throwable.
t
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
CharSequence
The message.
message
,
Throwable
A Throwable.
t
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Object
The message.
message
,
Throwable
A Throwable.
t
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object...
The parameters.
params
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
)

Determines if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
,
Object
the message parameters
p8
)

Tests if logging is enabled.

public boolean

Returns:

True if logging is enabled, false otherwise.
isEnabled
(Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
,
Object
the message parameters
p8
,
Object
the message parameters
p9
)

Tests if logging is enabled.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Message
The Message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
CharSequence
The CharSequence message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a CharSequence message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Object
The message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message.
message
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object...
The message parameters.
params
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
,
Object
the message parameters
p8
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Object
the message parameters
p0
,
Object
the message parameters
p1
,
Object
the message parameters
p2
,
Object
the message parameters
p3
,
Object
the message parameters
p4
,
Object
the message parameters
p5
,
Object
the message parameters
p6
,
Object
the message parameters
p7
,
Object
the message parameters
p8
,
Object
the message parameters
p9
)

Logs a message if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
MessageSupplier
A function, which when called, produces the desired log message.
msgSupplier
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a message which is only to be constructed if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
String
The message format.
message
,
Supplier<?>...
An array of functions, which when called, produce the desired log message parameters.
paramSuppliers
)
References Deprecated Supplier is deprecated or references (maybe indirectly) at least one deprecated element.

Logs a message whose parameters are only to be constructed if the specified level is active.

public void
logIfEnabled(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Supplier<?>
A function, which when called, produces the desired log message.
msgSupplier
,
Throwable
the exception to log, including its stack trace.
t
)
References Deprecated Supplier is deprecated or references (maybe indirectly) at least one deprecated element.

Logs a message which is only to be constructed if the specified level is active.

public void
logMessage(String
The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.
fqcn
,
Level
The logging Level to check.
level
,
Marker
A Marker or null.
marker
,
Message
The Message.
message
,
Throwable
the exception to log, including its stack trace.
t
)

Logs a message at the specified level.

Inherited from org.apache.logging.log4j.Logger:
alwaysatDebugatErroratFatalatInfoatLevelatTraceatWarncatchingcatchingdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugdebugentryentryerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorerrorexitexitfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalfatalgetFlowMessageFactorygetLevelgetMessageFactorygetNameinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoinfoisDebugEnabledisDebugEnabledisEnabledisEnabledisErrorEnabledisErrorEnabledisFatalEnabledisFatalEnabledisInfoEnabledisInfoEnabledisTraceEnabledisTraceEnabledisWarnEnabledisWarnEnabledlogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogMessageprintfprintfthrowingthrowingtracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetracetraceEntrytraceEntrytraceEntrytraceEntrytraceEntrytraceExittraceExittraceExittraceExittraceExittraceExitwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarnwarn