Skip to content

Logging

Andy Johns edited this page Feb 19, 2016 · 1 revision

####Description: Log text to the logging system

Method: PUT

URL: http://pmapi/log

Input: JSON dictionary

Dictionary must contain elements:

  • "level" - logging level, one of:

    • trace
    • debug
    • info
    • warn
    • error
    • fatal
  • "log" - String to send to the logging system.

The string in "log" will be logged to the provided "level" logging level.

Output: Standard HTTP status codes only. No data returned.


Example Input JSON

{

  "level": "debug",

  "log": "This is a message to log"

}