Introduction:
This web service is used to log user interaction with the web page. Later on this will allow us to generate user specific web pages, generate user statistic and also trace back errors.

Web service call:
HTTP Request method		POST
Variables			* user		ID of the user, if missing it’s an anonymous user
				* page		Current webpage that calls the logging service
				* type		Type of log message (error, user). Default value is user for logging user interactions.
				id		A ID what is displayed or requested (e.g. ID of a glycan on the glycan details page or the ID of a search result on the glycan list page)
				message		A detailed message what is logged in JSON format.

Note: all this data is sent to WS in the “query” object variable as a json string.
	* = required parameter

Function:
This web service will log interactions of the user with the frontend, what kind of functions he uses and errors he encounters. Each log entry consists of the user ID (can be anonymous), the page the error or interaction occurred, the type of logging (error or user interaction) an ID identifying the displayed data set and a generic log message in JSON format providing additionaldetails. The JSON format will be specific for each page and log message type.

Response:
Content					None
Access-Control-Allow-Origin		*

Warning:
To all Cross-Origin Resource Sharing (CORS) the web service has to allow all domains access. Otherwise browsers will not permit to call this web service by a webpage. Therefore the HTTP response header must contain the appropriate Access-Control-Allow-Origin statement.


General error codes:
====================
{
    "open-connection-failed": "Unable to connect to database."
}


Input error codes:
==================
{
    "invalid-query-json":"Submitted query JSON is not valid"
    ,"missing-query-key-in-query-json":"query property is missing in query JSON"
    ,"unexpected-field-in-query":"Unexpected field in query JSON."
    ,"missing-parameter":"one of the required parameter."
    ,"invalid-parameter-value":"one of the required parameter has invalid value."
    ,"invalid-parameter-value-length":"one of the required parameter value is too long"
}

~
