Api Setup

Json Object

Our sample JSON object which must be post to API:
{
    "message": "channel-name",
    "data": {
    		"page": "signup form",
    		"email": "[email protected],
    		"name": "John Doe"
	},
    "level": 200,
    "level_name": "INFO"	
}
Structure of Json Message:
message

This is where your channel name will be stored. Write a safe searchable and indexable name. This will help us to run target alerts and monitor the logs.

data

Your own data to save in log system.

level and level name

Standart log levels and name.

Sample CURL command:

curl -H "Authorization: Bearer AUTH_CODE" http://api.loggfy.com -H "Content-Type: application/json" -X POST -d  '{"message": "user-signup", "data": {"user": "john Doe", "email": "[email protected]", "status": "live" }, "level": 200, "level_name": "INFO"}'