/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #pragma once #include #include #include namespace quic { class BaseQLogger : public QLogger { public: explicit BaseQLogger(VantagePoint vantagePointIn, std::string protocolTypeIn) : QLogger(vantagePointIn, std::move(protocolTypeIn)) {} ~BaseQLogger() override = default; protected: std::unique_ptr createPacketEvent( const RegularQuicPacket& regularPacket, uint64_t packetSize); std::unique_ptr createPacketEvent( const RegularQuicWritePacket& writePacket, uint64_t packetSize); std::unique_ptr createPacketEvent( const VersionNegotiationPacket& versionPacket, uint64_t packetSize, bool isPacketRecvd); std::unique_ptr createPacketEvent( const RetryPacket& retryPacket, uint64_t packetSize, bool isPacketRecvd); }; } // namespace quic