summaryrefslogtreecommitdiffstats
path: root/elog_meta.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement Logging.Create interfaceMatt Spinler2019-08-051-0/+17
| | | | | | | | | | | | | | | | | | | | This adds the xyz.openbmc_project.Logging.Create interface on the /xyz/openbmc_project/logging path. The interface provides a single method, Create, that allows one to create an event log. This is an alternative to using the report/commit functions provided by the phosphor-logging/elog.hpp header file. Unlike those report/commit interfaces, this does not require that the entries in the AdditionalData event log property be defined ahead of time, as the whole AdditionalData contents are just passed in instead of read out of the journal. This means that the error does not need to have been defined in the error and metadata YAML files for an event log to be successfully created. The discussion on if that is still desired anyway is outside the scope of this commit. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Icf3f740ab86605deeaeb955ff51aa2ef292f5af4
* minor cleanup, std namespacingPatrick Venture2018-11-011-2/+2
| | | | | | | Added std namespace to places where there is a cpp version. Change-Id: I60a05a7c9cdcd79cfffc3c4968005fcbe34acf81 Signed-off-by: Patrick Venture <venture@google.com>
* style: local variable entry shadows outer symbolPatrick Venture2018-10-301-4/+4
| | | | | | | | | | | | | | | | | Many functions have a variable entry in a sub namespace to the outer symbol entry from phosphor-logging/log.hpp [phosphor-logging/log.hpp:73] -> [log_manager.hpp:104]: (style) Local variable entry shadows outer symbol [phosphor-logging/log.hpp:73] -> [log_manager.cpp:226]: (style) Local variable entry shadows outer symbol [phosphor-logging/log.hpp:73] -> [log_manager.cpp:243]: (style) Local variable entry shadows outer symbol [phosphor-logging/log.hpp:73] -> [elog_meta.hpp:37]: (style) Local variable entry shadows outer symbol Change-Id: Icf5d585ec05b0a545e515d0afb7d2267645a2f2c Signed-off-by: Patrick Venture <venture@google.com>
* style: scope reductionPatrick Venture2018-10-301-1/+2
| | | | | | | | [elog_meta.hpp:77]: (style) The scope of the variable 'ROOT' can be reduced. Change-Id: I2511c3b1551db08e5f0eef2d71513de36eb79f80 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-10-261-38/+28
| | | | | Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52 Signed-off-by: Patrick Venture <venture@google.com>
* Add association intf if there is inventory path metadataTom Joseph2017-07-251-0/+7
| | | | | Change-Id: I7d717d8ea5ccb3186bc18a4d1fea848eb7b0fdff Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Describe a compile flagDeepak Kodihalli2017-03-161-0/+4
| | | | | | | Add a comment to describe the PROCESS_META compile flag. Change-Id: I9dc652fd2f3f7b595177112114b53a650c514772 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Fix incorrect template specializationDeepak Kodihalli2017-03-161-1/+1
| | | | | Change-Id: I15c18d8e241226b1e9fcbf9c36c703b47b488ce5 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* callouts: implement metadata handlerDeepak Kodihalli2017-03-151-0/+12
| | | | | | | | Implement handler of the metadata CALLOUT_DEVICE_PATH. This handler will convert a device path to an inventory path and call out the latter. Change-Id: Icbf9c841884ec139f35ea2ac94648e355b421bb2 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* test: add callout-testDeepak Kodihalli2017-03-151-0/+36
| | | | | | | | Add test program which can create callouts based on an input device path. It creates an error, with callouts, with name TestCallout. Change-Id: I96b66b73ae4a9c00daff06222841a13747c07408 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add utility to parse error metadataDeepak Kodihalli2017-03-151-0/+21
| | | | | | | | Add method to parse out the metadata name and value from the error metadata, which is of the format "name=value". Change-Id: I7b6ba790c97faced664a11eb5806f7f87e8166a7 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add example metadata handler implementationDeepak Kodihalli2017-03-151-1/+11
| | | | | | | | Specialize metadata handler function template to depict implementation of this interface. Change-Id: I398db9c0bf1e0649ce7745d67f3345263ef1abcd Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* metadata: add interface to build associationsDeepak Kodihalli2017-03-151-0/+39
A metadata field found in the journal corresponding to an error could be special in the sense that it may require building specific error association objects. Add an interface to build such associations. Take advantage of the fact that every metadata has a corresponding type defined. Change-Id: I09e446879667044c009141443fc0dc6fed8a8b18 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud