Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
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_android/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 
15 #include "roc_core/noncopyable.h"
16 
17 namespace roc {
18 namespace core {
19 
20 struct LogMessage;
21 
22 //! Log backend.
23 class LogBackend : public NonCopyable<> {
24 public:
25  LogBackend();
26 
27  //! Handle log message.
28  void handle(const LogMessage& msg);
29 };
30 
31 } // namespace core
32 } // namespace roc
33 
34 #endif // ROC_CORE_LOG_BACKEND_H_
void handle(const LogMessage &msg)
Handle log message.
Base class for non-copyable objects.
Definition: noncopyable.h:23
Root namespace.
Non-copyable object.
Log message.
Definition: log.h:67