Package org.mockserver.logging
Class MockServerLogger
- java.lang.Object
-
- org.mockserver.logging.MockServerLogger
-
public class MockServerLogger extends Object
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description MockServerLogger()
MockServerLogger(Class loggerClass)
MockServerLogger(HttpStateHandler httpStateHandler)
MockServerLogger(org.slf4j.Logger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
configureLogger()
static boolean
isEnabled(org.slf4j.event.Level level)
void
logEvent(LogEntry logEntry)
MockServerLogger
setHttpStateHandler(HttpStateHandler httpStateHandler)
static void
writeToSystemOut(org.slf4j.Logger logger, LogEntry logEntry)
-
-
-
Constructor Detail
-
MockServerLogger
public MockServerLogger()
-
MockServerLogger
public MockServerLogger(org.slf4j.Logger logger)
-
MockServerLogger
public MockServerLogger(Class loggerClass)
-
MockServerLogger
public MockServerLogger(@Nullable HttpStateHandler httpStateHandler)
-
-
Method Detail
-
configureLogger
public static void configureLogger()
-
setHttpStateHandler
public MockServerLogger setHttpStateHandler(HttpStateHandler httpStateHandler)
-
logEvent
public void logEvent(LogEntry logEntry)
-
writeToSystemOut
public static void writeToSystemOut(org.slf4j.Logger logger, LogEntry logEntry)
-
isEnabled
public static boolean isEnabled(org.slf4j.event.Level level)
-
-