Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
log_backend.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_core/target_pc/roc_core/log_backend.h
10//! @brief Log backend.
11
12#ifndef ROC_CORE_LOG_BACKEND_H_
13#define ROC_CORE_LOG_BACKEND_H_
14
16
17namespace roc {
18namespace core {
19
20struct LogMessage;
21
22//! Log backend.
23class LogBackend : public NonCopyable<> {
24public:
25 LogBackend();
26
27 //! Handle log message.
28 void handle(const LogMessage& msg);
29
30private:
31 bool colors_supported_;
32};
33
34} // namespace core
35} // namespace roc
36
37#endif // ROC_CORE_LOG_BACKEND_H_
void handle(const LogMessage &msg)
Handle log message.
Shared ownership intrusive pointer.
Definition shared_ptr.h:32
Root namespace.
Non-copyable object.
Log message.
Definition log.h:68