blob: 3e22336e66fbb75cd73d6e6abd851176c3df0b92 [file] [log] [blame]
Matt Spinler4e8078c2019-07-09 13:22:32 -05001#include "manager.hpp"
2
3#include "additional_data.hpp"
4
5namespace openpower
6{
7namespace pels
8{
9
10using namespace phosphor::logging;
11
12namespace additional_data
13{
14constexpr auto rawPEL = "RAWPEL";
15}
16
17void Manager::create(const std::string& message, uint32_t obmcLogID,
18 uint64_t timestamp, Entry::Level severity,
19 const std::vector<std::string>& additionalData,
20 const std::vector<std::string>& associations)
21{
22 AdditionalData ad{additionalData};
23
24 // If a PEL was passed in, use that. Otherwise, create one.
25 auto rawPelPath = ad.getValue(additional_data::rawPEL);
26 if (rawPelPath)
27 {
28 addRawPEL(*rawPelPath, obmcLogID);
29 }
30 else
31 {
32 createPEL(message, obmcLogID, timestamp, severity, additionalData,
33 associations);
34 }
35}
36
37void Manager::addRawPEL(const std::string& rawPelPath, uint32_t obmcLogID)
38{
39}
40
41void Manager::erase(uint32_t obmcLogID)
42{
43}
44
45bool Manager::isDeleteProhibited(uint32_t obmcLogID)
46{
47 return false;
48}
49
50void Manager::createPEL(const std::string& message, uint32_t obmcLogID,
51 uint64_t timestamp,
52 phosphor::logging::Entry::Level severity,
53 const std::vector<std::string>& additionalData,
54 const std::vector<std::string>& associations)
55{
56}
57
58} // namespace pels
59} // namespace openpower