PLCnext API Documentation 25.0.2.69
LogLevel.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Commons/Logging/LogLevel.hpp"
9
11{
12using Arp::Base::Commons::Logging::LogLevel;
13}
14
15
16#ifdef ARP_DISABLE_CODE
17
18namespace Arp { namespace System { namespace Commons { namespace Diagnostics { namespace Logging
19{
20
26enum class LogLevel
27{
28 None = 0,
29 Off = 1,
30 Fatal = 2,
31 Error = 3,
32 Critical = 4,
33 Warning = 5,
34 Info = 6,
35 Debug = 7,
36 Trace = 8,
37 All = Trace,
38 Default = Info
39};
40
42// global stream operators of enum LogLevel for logging and parsing
43ARP_EXPORT std::ostream& operator<<(std::ostream& os, LogLevel value);
44ARP_EXPORT std::istream& operator>>(std::istream& is, LogLevel& value);
45
46}}}}} // end of namesapce Arp::System::Commons::Diagnostics::Logging
47
48
50// template specialization of LogLevel formatter
51template<> struct fmt::formatter<Arp::System::Commons::Diagnostics::Logging::LogLevel> : public fmt::ostream_formatter {};
52
53#endif // ARP_DISABLE_CODE
Namespace for logging classes
Root namespace for the PLCnext API