public class LoggingEvent
extends uk.org.lidalia.lang.RichObject
RichObject.equals(Object)
and RichObject.hashCode()
is that they compare the results of:
They do NOT compare the results of getTimestamp()
or getCreatingLogger()
as this would render it impractical
to create appropriate expected LoggingEvent
s to compare against.
Constructors and convenient static factory methods exist to create LoggingEvent
s with appropriate
defaults. These are not documented further as they should be self-evident.Constructor and Description |
---|
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
Map<String,String> mdc,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
org.slf4j.Marker marker,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
String message,
Object... arguments) |
LoggingEvent(uk.org.lidalia.slf4jext.Level level,
Throwable throwable,
String message,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
static LoggingEvent |
debug(Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
debug(Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
debug(Map<String,String> mdc,
String message,
Object... arguments) |
static LoggingEvent |
debug(Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
debug(org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
debug(org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
debug(String message,
Object... arguments) |
static LoggingEvent |
debug(Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
error(Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
error(Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
error(Map<String,String> mdc,
String message,
Object... arguments) |
static LoggingEvent |
error(Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
error(org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
error(org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
error(String message,
Object... arguments) |
static LoggingEvent |
error(Throwable throwable,
String message,
Object... arguments) |
com.google.common.collect.ImmutableList<Object> |
getArguments() |
TestLogger |
getCreatingLogger() |
uk.org.lidalia.slf4jext.Level |
getLevel() |
com.google.common.base.Optional<org.slf4j.Marker> |
getMarker() |
com.google.common.collect.ImmutableMap<String,String> |
getMdc() |
String |
getMessage() |
String |
getThreadName() |
com.google.common.base.Optional<Throwable> |
getThrowable() |
org.joda.time.Instant |
getTimestamp() |
static LoggingEvent |
info(Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
info(Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
info(Map<String,String> mdc,
String message,
Object... arguments) |
static LoggingEvent |
info(Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
info(org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
info(org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
info(String message,
Object... arguments) |
static LoggingEvent |
info(Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
trace(Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
trace(Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
trace(Map<String,String> mdc,
String message,
Object... arguments) |
static LoggingEvent |
trace(Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
trace(org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
trace(org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
trace(String message,
Object... arguments) |
static LoggingEvent |
trace(Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
warn(Map<String,String> mdc,
org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
warn(Map<String,String> mdc,
org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
warn(Map<String,String> mdc,
String message,
Object... arguments) |
static LoggingEvent |
warn(Map<String,String> mdc,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
warn(org.slf4j.Marker marker,
String message,
Object... arguments) |
static LoggingEvent |
warn(org.slf4j.Marker marker,
Throwable throwable,
String message,
Object... arguments) |
static LoggingEvent |
warn(String message,
Object... arguments) |
static LoggingEvent |
warn(Throwable throwable,
String message,
Object... arguments) |
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, Throwable throwable, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, org.slf4j.Marker marker, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, Map<String,String> mdc, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public LoggingEvent(uk.org.lidalia.slf4jext.Level level, Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent trace(String message, Object... arguments)
public static LoggingEvent trace(Throwable throwable, String message, Object... arguments)
public static LoggingEvent trace(org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent trace(org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent trace(Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public static LoggingEvent trace(Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent trace(Map<String,String> mdc, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent debug(String message, Object... arguments)
public static LoggingEvent debug(Throwable throwable, String message, Object... arguments)
public static LoggingEvent debug(org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent debug(org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent debug(Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public static LoggingEvent debug(Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent debug(Map<String,String> mdc, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent info(String message, Object... arguments)
public static LoggingEvent info(Throwable throwable, String message, Object... arguments)
public static LoggingEvent info(org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent info(org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent info(Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public static LoggingEvent info(Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent info(Map<String,String> mdc, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent warn(String message, Object... arguments)
public static LoggingEvent warn(Throwable throwable, String message, Object... arguments)
public static LoggingEvent warn(org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent warn(org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent warn(Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public static LoggingEvent warn(Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent warn(Map<String,String> mdc, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent error(String message, Object... arguments)
public static LoggingEvent error(Throwable throwable, String message, Object... arguments)
public static LoggingEvent error(org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent error(org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public static LoggingEvent error(Map<String,String> mdc, Throwable throwable, String message, Object... arguments)
public static LoggingEvent error(Map<String,String> mdc, org.slf4j.Marker marker, String message, Object... arguments)
public static LoggingEvent error(Map<String,String> mdc, org.slf4j.Marker marker, Throwable throwable, String message, Object... arguments)
public uk.org.lidalia.slf4jext.Level getLevel()
public com.google.common.base.Optional<org.slf4j.Marker> getMarker()
public String getMessage()
public com.google.common.collect.ImmutableList<Object> getArguments()
public com.google.common.base.Optional<Throwable> getThrowable()
public TestLogger getCreatingLogger()
IllegalStateException
- if this logging event was not created by a loggerpublic org.joda.time.Instant getTimestamp()
public String getThreadName()
Copyright © 2014. All Rights Reserved.