diff options
Diffstat (limited to 'jdisc_http_service/src/main/java/com/yahoo/container/logging')
-rw-r--r-- | jdisc_http_service/src/main/java/com/yahoo/container/logging/AccessLog.java | 9 | ||||
-rw-r--r-- | jdisc_http_service/src/main/java/com/yahoo/container/logging/RequestLog.java | 15 |
2 files changed, 23 insertions, 1 deletions
diff --git a/jdisc_http_service/src/main/java/com/yahoo/container/logging/AccessLog.java b/jdisc_http_service/src/main/java/com/yahoo/container/logging/AccessLog.java index 5c1a549070c..f60c52f7f38 100644 --- a/jdisc_http_service/src/main/java/com/yahoo/container/logging/AccessLog.java +++ b/jdisc_http_service/src/main/java/com/yahoo/container/logging/AccessLog.java @@ -9,8 +9,9 @@ import com.yahoo.component.provider.ComponentRegistry; * Logs to all the configured access logs. * * @author Tony Vaagenes + * @author bjorncs */ -public class AccessLog { +public class AccessLog implements RequestLog { private ComponentRegistry<AccessLogInterface> implementers; @@ -23,10 +24,16 @@ public class AccessLog { return new AccessLog(new ComponentRegistry<>()); } + @Override public void log(AccessLogEntry accessLogEntry) { for (AccessLogInterface log: implementers.allComponents()) { log.log(accessLogEntry); } } + @Override + public void log(RequestLogEntry entry) { + // TODO Implement + } + } diff --git a/jdisc_http_service/src/main/java/com/yahoo/container/logging/RequestLog.java b/jdisc_http_service/src/main/java/com/yahoo/container/logging/RequestLog.java new file mode 100644 index 00000000000..f1036dcb880 --- /dev/null +++ b/jdisc_http_service/src/main/java/com/yahoo/container/logging/RequestLog.java @@ -0,0 +1,15 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.container.logging; + +/** + * Access logging for requests + * + * @author bjorncs + */ +public interface RequestLog { + + void log(AccessLogEntry entry); + + void log(RequestLogEntry entry); + +} |