PLCnext API Documentation 26.0.1.58
LogEvent.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Commons/Diagnostics/Logging/LogLevel.hpp"
9
10// Impl forwards
11namespace Log4Arp
12{
13class LogEvent;
14}
15
16namespace Arp { namespace System { namespace Commons { namespace Diagnostics { namespace Logging
17{
18
23class ARP_CXX_SYMBOL_EXPORT LogEvent
24{
25public: // usings
26 using Impl = const Log4Arp::LogEvent;
27
28public: // construction
29 explicit LogEvent(const Impl& logEvent);
30
31 // canonical construction/destruction/assignment
32 LogEvent(const LogEvent& arg);
33 LogEvent(LogEvent&& arg)noexcept;
34 LogEvent& operator=(const LogEvent& arg) = delete;
35 LogEvent& operator=(LogEvent&& arg)noexcept = delete;
36 ~LogEvent(void);
37
38public: // setter/getter operations
39 DateTime GetTimestamp(void)const;
40 LogLevel GetSeverity(void)const;
41 String GetLoggerName(void)const;
42 String GetMessage(void)const;
43
44public: // internal operations
45 Impl& GetImpl(void);
46 const Impl& GetImpl(void)const;
47
48private: // Impl fields
49 const Impl& impl;
50};
51
52}}}}} // end of namespace Arp::System::Commons::Diagnostics::Logging
This class contains date and time informations.
Definition: DateTime.hpp:27
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
This class is used to forward log events from LogEngine.
Definition: LogEvent.hpp:24
LogEvent(const LogEvent &arg)
Default copy constructor.
LogEvent(LogEvent &&arg) noexcept
Default move constructor.
Root namespace for the PLCnext API