Line data Source code
1 : #include "source/extensions/access_loggers/common/access_log_base.h" 2 : 3 : #include "source/common/http/header_map_impl.h" 4 : #include "source/common/singleton/const_singleton.h" 5 : 6 : namespace Envoy { 7 : namespace Extensions { 8 : namespace AccessLoggers { 9 : namespace Common { 10 : 11 : void ImplBase::log(const Formatter::HttpFormatterContext& log_context, 12 612 : const StreamInfo::StreamInfo& stream_info) { 13 : 14 612 : if (filter_ && !filter_->evaluate(log_context, stream_info)) { 15 0 : return; 16 0 : } 17 : 18 612 : return emitLog(log_context, stream_info); 19 612 : } 20 : 21 : } // namespace Common 22 : } // namespace AccessLoggers 23 : } // namespace Extensions 24 : } // namespace Envoy