Package org.mockserver.logging
Class MockServerLogger
- java.lang.Object
-
- org.mockserver.logging.MockServerLogger
-
public class MockServerLogger extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static MockServerLogger
MOCK_SERVER_LOGGER
-
Constructor Summary
Constructors Constructor Description MockServerLogger()
MockServerLogger(Class loggerClass)
MockServerLogger(org.slf4j.Logger logger, HttpStateHandler httpStateHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(MessageLogEntry.LogMessageType type, String message, Object... arguments)
void
debug(MessageLogEntry.LogMessageType type, HttpRequest request, String message, Object... arguments)
void
error(String message, Object... arguments)
void
error(String message, Throwable throwable)
void
error(List<HttpRequest> requests, Throwable throwable, String message, Object... arguments)
void
error(HttpRequest request, String message, Object... arguments)
void
error(HttpRequest request, Throwable throwable, String message, Object... arguments)
void
info(MessageLogEntry.LogMessageType type, String message, Object... arguments)
void
info(MessageLogEntry.LogMessageType type, List<HttpRequest> requests, String message, Object... arguments)
void
info(MessageLogEntry.LogMessageType type, HttpRequest request, String message, Object... arguments)
static void
initialiseLogLevels()
boolean
isEnabled(org.slf4j.event.Level level)
static void
setRootLogLevel(String name)
void
trace(String message, Object... arguments)
void
trace(HttpRequest request, String message, Object... arguments)
void
warn(String message)
void
warn(String message, Object... arguments)
void
warn(HttpRequest request, String message, Object... arguments)
-
-
-
Field Detail
-
MOCK_SERVER_LOGGER
public static final MockServerLogger MOCK_SERVER_LOGGER
-
-
Constructor Detail
-
MockServerLogger
public MockServerLogger()
-
MockServerLogger
public MockServerLogger(Class loggerClass)
-
MockServerLogger
public MockServerLogger(org.slf4j.Logger logger, @Nullable HttpStateHandler httpStateHandler)
-
-
Method Detail
-
initialiseLogLevels
public static void initialiseLogLevels()
-
setRootLogLevel
public static void setRootLogLevel(String name)
-
trace
public void trace(HttpRequest request, String message, Object... arguments)
-
debug
public void debug(MessageLogEntry.LogMessageType type, String message, Object... arguments)
-
debug
public void debug(MessageLogEntry.LogMessageType type, HttpRequest request, String message, Object... arguments)
-
info
public void info(MessageLogEntry.LogMessageType type, String message, Object... arguments)
-
info
public void info(MessageLogEntry.LogMessageType type, HttpRequest request, String message, Object... arguments)
-
info
public void info(MessageLogEntry.LogMessageType type, List<HttpRequest> requests, String message, Object... arguments)
-
warn
public void warn(String message)
-
warn
public void warn(@Nullable HttpRequest request, String message, Object... arguments)
-
error
public void error(@Nullable HttpRequest request, String message, Object... arguments)
-
error
public void error(@Nullable HttpRequest request, Throwable throwable, String message, Object... arguments)
-
error
public void error(List<HttpRequest> requests, Throwable throwable, String message, Object... arguments)
-
isEnabled
public boolean isEnabled(org.slf4j.event.Level level)
-
-