From 7aafb12ea6d143a694080733b2f65216c8c9c892 Mon Sep 17 00:00:00 2001 From: Nagaraju Goruganti Date: Fri, 6 Oct 2017 04:08:55 -0500 Subject: Add Readme file Change-Id: Ibda92d85a2ff789f896587ff00fb659ad8e96d54 Signed-off-by: Nagaraju Goruganti --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cb0c4da --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# phosphor-logging +phosphor logging provides mechanism for common event and logging creation based +on information from the journal log. + +## To Build +``` +To build this package, do the following steps: + + 1. ./bootstrap.sh + 2. ./configure ${CONFIGURE_FLAGS} + 3. make + +To clean the repository run `./bootstrap.sh clean`. +``` +## REST command to delete an error + + curl -c cjar -k -X POST -H "Content-Type: application/json" \ + -d '{"data": [ "root", "" ] }' https:///login + + curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST \ + -d '{"data": []}' \ + https:///xyz/openbmc_project/logging/entry//action/Delete + +## REST command to delete all errors + + curl -c cjar -k -X POST -H "Content-Type: application/json" \ + -d '{"data": [ "root", "" ] }' https://</login + + curl -c cjar -b cjar -k -H "Content-Type: application/json" \ + -X POST https://</xyz/openbmc_project/logging/action/deleteAll \ + -d "{\"data\": [] }" + -- cgit v1.2.1