webserv/webserv/log/Channel.hpp

22 lines
557 B
C++

#pragma once
#include <webserv/log/Log.hpp>
#include <webserv/log/LogLevel.hpp>
#include <map>
#include <string>
class Channel
{
public:
Channel() = default;
virtual ~Channel() = default;
Channel(const Channel &other) = delete;
Channel(const Channel &&other) = delete;
Channel &operator=(const Channel &other) = delete;
Channel &&operator=(const Channel &&other) = delete;
virtual void log(LogLevel &logLevel, const std::string &message,
const std::map<std::string, std::string> &context = {}) = 0;
};