PLCnext API Documentation 23.0.2.9
LogInfo.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/System/Commons/Diagnostics/Logging/LogLevel.hpp"
9
10// forwards
11namespace log4cplus { namespace spi
12{
13class InternalLoggingEvent;
14}}
15
16namespace Arp { namespace System { namespace Commons { namespace Diagnostics { namespace Logging
17{
18
20{
21public: // usings
22
23public: // construction/destruction
25 explicit 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
37public: // setter/getter operations
38 DateTime GetTimestamp(void)const;
39 LogLevel GetSeverity(void)const;
40 String GetLoggerName(void)const;
41 String GetMessage(void)const;
42
43public: // operations
44
45private: // methods
46
47private: // 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:45
~LogInfo(void)=default
Destructs this instance and frees all resources.
LogInfo(LogInfo &&arg)=default
Move constructor.
LogInfo & operator=(LogInfo &&arg)=default
Move-assignment operator.
LogInfo(const LogInfo &arg)=default
Copy constructor.
LogInfo & operator=(const LogInfo &arg)=default
Copy-assignment operator.
LogInfo(const log4cplus::spi::InternalLoggingEvent &logEvent)
Constructs an LogEvent instance.
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API