You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to set up logging in the sysl-generated code so as to:
track changes to selected variables (log on variable change; i.e. when the variable is on the left of the '=')
track incoming and outgoing http request of a given endpoint name and type (GET, GUT, POST, DELETE, etc.)
Suggested approaches
An Example
import upstream.yaml as UP ~openapi3 ## logs endpoint entry (headers and body) and response (headers and body)
import downstream.yaml as DOWN [~log] ## logs endpoint entry (headers and body) and response (headers and body)
UP [~validate]:
@package="UP"
/dotheup: [~log]
POST:
DOWN <- POST /do/the/down [~log]
| DOWN forwards the request asynchronously and replies immediately
!type HealthCheckResponse: ## logs all variables of this type
Status <: string
ServiceName <: string
AppVersion <: string
!type MissingParameter [~error]: ## logs all variables of this type
http_status <: string [value = "400"]
http_message <: string [value = "Missing one or more of the required parameters"]
!type CustomInternalServerError [~error]: ## logs all variables of this type
http_status <: string [value = "500"]
http_message <: string [value = "Internal Server Error"]
Also is it possible to put in a specially formatted comment in the yaml files to allow fine-grain control of what to log?
The text was updated successfully, but these errors were encountered:
Purpose
I would like to be able to set up logging in the sysl-generated code so as to:
Suggested approaches
An Example
Also is it possible to put in a specially formatted comment in the yaml files to allow fine-grain control of what to log?
The text was updated successfully, but these errors were encountered: