Switchboard Extension SDK
Loading...
Searching...
No Matches
LogDestination.hpp
1//
2// LogDestination.hpp
3// SwitchboardSDK
4//
5// Created by Balázs Kiss on 2022. 07. 29..
6//
7
8#pragma once
9
10#include <string>
11#include <switchboard/export.h>
12#include <switchboard_core/LogLevel.hpp>
13
14namespace switchboard {
15
21class SWITCHBOARDSDK_EXPORT LogDestination {
22public:
26 virtual ~LogDestination() = default;
27
34 virtual void log(LogLevel logLevel, const std::string& logMessage) = 0;
35};
36
37}
Provides an interface to implement platform-specific logging.
Definition LogDestination.hpp:21
virtual ~LogDestination()=default
LogDestination destructor.
virtual void log(LogLevel logLevel, const std::string &logMessage)=0
Logs a log message.