summaryrefslogtreecommitdiffstats
path: root/logging_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update test case to verify error inheritanceDeepak Kodihalli2017-01-271-4/+34
| | | | | | | Ensure inherited metadata shows up in the journal. Change-Id: I4b6c30e1439bf6a799fbb78d8e8eb6754141b568 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* elog-gen.py : implement error inheritanceDeepak Kodihalli2017-01-271-2/+11
| | | | | | | | | If an error inherits another error (via the error YAML interface), have the child error inherit parent's metadata. Only single inheritance is supported as of now. Change-Id: I9ff295f4db04a9c5389f66e04f5d28287f9628a9 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* elog-gen.py : read multiple error yaml filesDeepak Kodihalli2017-01-271-6/+6
| | | | | | | | | | | | | | | | This change enables the elog-gen script to look at more than one error yaml file (and corresponding metadata yaml file). The input to the script had to be changed to a yaml directory, containing error yaml files, instead of a single error yaml file. The reason to support reading multiple error yaml files is that, without this, applications have to all dump their errors in a single big error yaml file. Now it's possible to write application/domain specific error yaml files; they just need to be exported to the same location, from where elog-gen.py can pick them. Change-Id: I9418bf0e0b54a7b7f7701b337649cb8eb4c54913 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Base error log namespaces on yaml file pathAndrew Geissler2016-11-231-20/+20
| | | | | | | | | This is another step in the direction of getting us to support the error yaml file as it will be defined in the phosphor-dbus-interfaces repo. Change-Id: Ib437bea920f511bdbf541c3e2653bbf35a83fe92 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update elog gen script to support the dbus specified errorsAndrew Geissler2016-11-181-18/+25
| | | | | | | | This work is in prep for running this python script against the errors defined in the phosphor-dbus-interfaces repo Change-Id: I85e6f612a5935391deaedc74aab06ca023c15703 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Build the required error log header file for elogsAndrew Geissler2016-11-081-24/+32
| | | | | | | | | | | | Take the elog.yaml file and generate the required hpp file required for build time validation and error log processing. A future commit will delete elog-gen.hpp and will start dynamically generating it during build. Change-Id: I21a87d959096a2541de69fde47f57f02482a00cc Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add exception generation to error loggingAndrew Geissler2016-11-021-7/+20
| | | | | | | | | | | | This commit puts basic exception support into the elog class. All errors will generate an exception with this commit. This will most likely change over to using the dbus exception class as a base in the future but that change will be transperent to the users. Change-Id: Ibd02d4c204393a0cfb156805360161759cb6631e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add in test case which validates elog client interfaceAndrew Geissler2016-10-311-0/+130
Change-Id: I5c5f7a550a8f272251893ff616408c41d32281f9 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud