blob: 7cf7a376d9c46b12ca87d7fedff484c14c0e7564 [file] [log] [blame]
Tom Joseph56c534b2017-10-17 12:38:42 +05301// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
Patrick Venture02261c02018-10-31 15:16:23 -07005#include <phosphor-logging/elog.hpp>
6#include <phosphor-logging/log.hpp>
7#include <sdbusplus/exception.hpp>
Tom Joseph56c534b2017-10-17 12:38:42 +05308#include <string>
9#include <tuple>
10#include <type_traits>
Tom Joseph56c534b2017-10-17 12:38:42 +053011
12namespace sdbusplus
13{
14namespace org
15{
16namespace open_power
17{
18namespace OCC
19{
20namespace Metrics
21{
22namespace Error
23{
Patrick Venture02261c02018-10-31 15:16:23 -070024struct Event;
Tom Joseph56c534b2017-10-17 12:38:42 +053025} // namespace Error
26} // namespace Metrics
27} // namespace OCC
28} // namespace open_power
29} // namespace org
30} // namespace sdbusplus
31
Tom Joseph56c534b2017-10-17 12:38:42 +053032namespace phosphor
33{
34
35namespace logging
36{
37
38namespace org
39{
40namespace open_power
41{
42namespace OCC
43{
44namespace Metrics
45{
46namespace _Event
47{
48
49struct ESEL
50{
51 static constexpr auto str = "ESEL=%s";
52 static constexpr auto str_short = "ESEL";
Patrick Venture02261c02018-10-31 15:16:23 -070053 using type = std::tuple<std::decay_t<decltype(str)>, const char*>;
54 explicit constexpr ESEL(const char* a) : _entry(entry(str, a)){};
Tom Joseph56c534b2017-10-17 12:38:42 +053055 type _entry;
56};
57
Patrick Venture02261c02018-10-31 15:16:23 -070058} // namespace _Event
Tom Joseph56c534b2017-10-17 12:38:42 +053059
60struct Event
61{
62 static constexpr auto L = level::INFO;
63 using ESEL = _Event::ESEL;
64 using metadata_types = std::tuple<ESEL>;
Tom Joseph56c534b2017-10-17 12:38:42 +053065};
66
67} // namespace Metrics
68} // namespace OCC
69} // namespace open_power
70} // namespace org
71
Tom Joseph56c534b2017-10-17 12:38:42 +053072namespace details
73{
74
75template <>
Patrick Venture02261c02018-10-31 15:16:23 -070076struct map_exception_type<
77 sdbusplus::org::open_power::OCC::Metrics::Error::Event>
Tom Joseph56c534b2017-10-17 12:38:42 +053078{
79 using type = org::open_power::OCC::Metrics::Event;
80};
81
Patrick Venture02261c02018-10-31 15:16:23 -070082} // namespace details
Tom Joseph56c534b2017-10-17 12:38:42 +053083
84} // namespace logging
85
86} // namespace phosphor