log_msg.h
Go to the documentation of this file.
1 //
2 // Copyright(c) 2015 Gabi Melman.
3 // Distributed under the MIT License (http://opensource.org/licenses/MIT)
4 //
5 
6 #pragma once
7 
8 #include "opc/spdlog/common.h"
10 
11 
12 #include <string>
13 #include <utility>
14 
15 namespace spdlog
16 {
17 namespace details
18 {
19 struct log_msg
20 {
21  log_msg() = default;
22  log_msg(const std::string *loggers_name, level::level_enum lvl) :
23  logger_name(loggers_name),
24  level(lvl),
25  msg_id(0)
26  {
27 #ifndef SPDLOG_NO_DATETIME
28  time = os::now();
29 #endif
30 
31 #ifndef SPDLOG_NO_THREAD_ID
33 #endif
34  }
35 
36  log_msg(const log_msg& other) = delete;
37  log_msg& operator=(log_msg&& other) = delete;
38  log_msg(log_msg&& other) = delete;
39 
40 
43  log_clock::time_point time;
44  size_t thread_id;
47  size_t msg_id;
48 };
49 }
50 }
log_msg & operator=(log_msg &&other)=delete
const std::string * logger_name
Definition: log_msg.h:41
spdlog::log_clock::time_point now()
Definition: os.h:64
size_t thread_id()
Definition: os.h:343
level::level_enum level
Definition: log_msg.h:42
fmt::MemoryWriter formatted
Definition: log_msg.h:46
fmt::MemoryWriter raw
Definition: log_msg.h:45
log_clock::time_point time
Definition: log_msg.h:43
log_msg(const std::string *loggers_name, level::level_enum lvl)
Definition: log_msg.h:22


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:06