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 <switchboard/export.h>
11#include <switchboard_core/LogLevel.hpp>
12
13#include <string>
14
15namespace switchboard {
16
22class SWITCHBOARDSDK_EXPORT LogDestination {
23public:
27 virtual ~LogDestination() = default;
28
35 virtual void log(LogLevel logLevel, const std::string& logMessage) = 0;
36};
37
38}
Provides an interface to implement platform-specific logging.
Definition LogDestination.hpp:22
virtual ~LogDestination()=default
LogDestination destructor.
virtual void log(LogLevel logLevel, const std::string &logMessage)=0
Logs a log message.