Diag-Client-Lib
logger.h
Go to the documentation of this file.
1 /* Diagnostic Client library
2  * Copyright (C) 2024 Avijit Dey
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 #ifndef DIAGNOSTIC_CLIENT_LIB_LIB_BOOST_SUPPORT_COMMON_LOGGER_H
9 #define DIAGNOSTIC_CLIENT_LIB_LIB_BOOST_SUPPORT_COMMON_LOGGER_H
10 
11 #include "utility/logger.h"
12 
13 namespace boost_support {
14 namespace common {
15 namespace logger {
17 
19  public:
20  auto static GetLibBoostLogger() noexcept -> LibBoostLogger& {
21  static LibBoostLogger boost_logger;
22  return boost_logger;
23  }
24 
25  auto GetLogger() noexcept -> Logger& { return logger_; }
26 
27  private:
28  LibBoostLogger() = default;
29 
30  // actual logger context
31  Logger logger_{"dcbs"};
32 };
33 } // namespace logger
34 } // namespace common
35 } // namespace boost_support
36 #endif // DIAGNOSTIC_CLIENT_LIB_LIB_BOOST_SUPPORT_COMMON_LOGGER_H
static auto GetLibBoostLogger() noexcept -> LibBoostLogger &
Definition: logger.h:20
auto GetLogger() noexcept -> Logger &
Definition: logger.h:25
Logger class that is used to log Dlt messages from the component.
Definition: logger.h:32
utility::logger::Logger Logger
Definition: logger.h:16