APISonar


org.mockserver.mock.HttpStateHandler.log

> org > mockserver > mock > HttpStateHandler > log
org APIs mockserver APIs mock APIs HttpStateHandler APIs log APIs

Example 1
private HttpStateHandler httpStateHandler;

    public void logEvent(LogEntry logEntry) {
        if (logEntry.getType() == RECEIVED_REQUEST || isEnabled(logEntry.getLogLevel())) {
            if (httpStateHandler != null) {
                httpStateHandler.log(logEntry);
            } else {
                writeToSystemOut(logger, logEntry);
            }
        }
    }