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/Core/Enum.hxx"
9
10namespace Arp::Base::Commons::Logging
11{
12
18enum class LogLevel
19{
20 None = 0,
21 Off = 1,
22 Fatal = 2,
23 Error = 3,
24 Critical = 4,
25 Warning = 5,
26 Info = 6,
27 Debug = 7,
28 Trace = 8,
29 All = Trace,
30 Default = Info
31};
32
34// global stream operators of enum LogLevel for logging and parsing
35ARP_EXPORT std::ostream& operator<<(std::ostream& os, LogLevel value);
36ARP_EXPORT std::istream& operator>>(std::istream& is, LogLevel& value);
37
38} // end of namespace Arp::Base::Commons::Logging
39
40
42// template specialization of LogLevel formatter
43template<> struct fmt::formatter<Arp::Base::Commons::Logging::LogLevel> : public fmt::ostream_formatter {};
Root namespace for the PLCnext API