PLCnext API Documentation 25.0.2.69
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/destruction/assignment
29 explicit LogEvent(const Impl& logEvent);
30 LogEvent(const LogEvent& arg);
31 LogEvent(LogEvent&& arg)noexcept;
32 LogEvent& operator=(const LogEvent& arg) = delete;
33 LogEvent& operator=(LogEvent&& arg)noexcept = delete;
34 ~LogEvent(void);
35
36public: // setter/getter operations
37 DateTime GetTimestamp(void)const;
38 LogLevel GetSeverity(void)const;
39 String GetLoggerName(void)const;
40 String GetMessage(void)const;
41
42public: // internal operations
43 Impl& GetImpl(void);
44 const Impl& GetImpl(void)const;
45
46private: // Impl fields
47 const Impl& impl;
48};
49
50}}}}} // 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