Record Class SLF4JToL4TLogger
java.lang.Object
java.lang.Record
dev.pfaff.log4truth.compat.slf4j.SLF4JToL4TLogger
- All Implemented Interfaces:
org.slf4j.Logger
public record SLF4JToL4TLogger(dev.pfaff.log4truth.NamedLogger logger)
extends Record
implements org.slf4j.Logger
-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionSLF4JToL4TLogger
(dev.pfaff.log4truth.NamedLogger logger) Creates an instance of aSLF4JToL4TLogger
record class.SLF4JToL4TLogger
(String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
final boolean
Indicates whether some other object is "equal to" this one.void
void
void
void
void
void
void
void
void
void
getName()
final int
hashCode()
Returns a hash code value for this object.void
void
void
void
void
void
void
void
void
void
boolean
boolean
isDebugEnabled
(org.slf4j.Marker marker) boolean
boolean
isErrorEnabled
(org.slf4j.Marker marker) boolean
boolean
isInfoEnabled
(org.slf4j.Marker marker) boolean
boolean
isTraceEnabled
(org.slf4j.Marker marker) boolean
boolean
isWarnEnabled
(org.slf4j.Marker marker) dev.pfaff.log4truth.NamedLogger
logger()
Returns the value of thelogger
record component.final String
toString()
Returns a string representation of this record class.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Constructor Details
-
SLF4JToL4TLogger
-
SLF4JToL4TLogger
public SLF4JToL4TLogger(dev.pfaff.log4truth.NamedLogger logger) Creates an instance of aSLF4JToL4TLogger
record class.- Parameters:
logger
- the value for thelogger
record component
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker) - Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker) - Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker) - Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker) - Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker) - Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
trace
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
-
trace
-
trace
-
trace
-
trace
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
-
trace
-
trace
-
trace
-
debug
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
-
debug
-
debug
-
debug
-
debug
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
-
debug
-
debug
-
debug
-
info
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
-
info
-
info
-
info
-
info
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
-
info
-
info
-
info
-
warn
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
-
warn
-
warn
-
warn
-
warn
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
-
warn
-
warn
-
warn
-
error
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
-
error
-
error
-
error
-
error
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
-
error
-
error
-
error
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
logger
public dev.pfaff.log4truth.NamedLogger logger()Returns the value of thelogger
record component.- Returns:
- the value of the
logger
record component
-