Reorganized stuff to make plog private

This commit is contained in:
Paul-Louis Ageneau
2021-04-13 21:55:09 +02:00
parent 2fd3da482a
commit 4ca78db146
35 changed files with 956 additions and 762 deletions

View File

@ -25,6 +25,23 @@
namespace rtc {
enum class LogLevel { // Don't change, it must match plog severity
None = 0,
Fatal = 1,
Error = 2,
Warning = 3,
Info = 4,
Debug = 5,
Verbose = 6
};
typedef std::function<void(LogLevel level, string message)> LogCallback;
RTC_CPP_EXPORT void InitLogger(LogLevel level, LogCallback callback = nullptr);
#ifdef PLOG
RTC_CPP_EXPORT void InitLogger(plog::Severity severity, plog::IAppender *appender = nullptr);
#endif
RTC_EXPORT void Preload();
RTC_EXPORT void Cleanup();