PLCnext API Documentation  22.0.0.43
LogInfo.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 #pragma once
7 #include "Arp/System/Core/Arp.h"
8 #include "Arp/System/Commons/Diagnostics/Logging/LogLevel.hpp"
9 
10 // forwards
11 namespace log4cplus { namespace spi
12 {
13 class InternalLoggingEvent;
14 }}
15 
16 namespace Arp { namespace System { namespace Commons { namespace Diagnostics { namespace Logging
17 {
18 
19 class LogInfo
20 {
21 public: // typedefs
22 
23 public: // construction/destruction
25  LogInfo(const log4cplus::spi::InternalLoggingEvent& logEvent);
27  LogInfo(const LogInfo& arg) = default;
29  LogInfo(LogInfo&& arg) = default;
31  LogInfo& operator=(const LogInfo& arg) = default;
33  LogInfo& operator=(LogInfo&& arg) = default;
35  ~LogInfo(void) = default;
36 
37 public: // setter/getter operations
38  DateTime GetTimestamp(void)const;
39  LogLevel GetSeverity(void)const;
40  String GetLoggerName(void)const;
41  String GetMessage(void)const;
42 
43 public: // operations
44 
45 private: // methods
46 
47 private: // fields
48  const log4cplus::spi::InternalLoggingEvent& logEvent;
49 };
50 
52 // inline methods of class LogEvent
53 
54 }}}}} // end of namespace Arp::System::Commons::Diagnostics::Logging
The class contains date and time informations.
Definition: DateTime.hpp:44
Root namespace for the PLCnext API
System components used by the System, Device, Plc or Io domains.
Definition: LogAdapter.hpp:14