summaryrefslogtreecommitdiffstats
path: root/tools/phosphor-logging/templates/elog-lookup-template.mako.cpp
blob: 8e022cec58329313b2ebc086bd0a0460584a77d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Note that this file is not auto generated, it is what generates the
## elog-lookup.cpp file
// This file was autogenerated.  Do not edit!
// See elog-gen.py for more details
#include <map>
#include <vector>
#include "log.hpp"

namespace phosphor
{

namespace logging
{

std::map<std::string,std::vector<std::string>> g_errMetaMap = {
    % for a in errors:
    <% meta_string = '\",\"'.join(meta[a]) %> \
    {"${a}",{"${meta_string}"}},
    % endfor
};

std::map<std::string,level> g_errLevelMap = {
    % for a in errors:
    <% meta_string = '\",\"'.join(meta[a]) %> \
    {"${a}",level::${error_lvl[a]}},
    % endfor
};

} // namespace logging

} // namespace phosphor
OpenPOWER on IntegriCloud