Application Logging

interopiO™ provides a service for applications to publish their logs and also provides an associated log viewer.  This same log viewer will also display any system events that were logged by the platform during app launch and use.

Opting in and Token Generation:
In order for an application to publish logs, an admin/Owner needs to login to the interopiO™ admin-console and can opt in during the app registration process or update the app details screen to “Enable application logging”. 

Once an application has opted in to application logging, the application will require a token to be able to publish logs to interopiO™'s logging service.

In both the Proxied launch and Standalone launch, the app receives a token from interopiO™'s auth server. This token has been enhanced to provide information about the appId and if the app has enabled application logging.

Publishing logs: 

Using the token, the application can now POST logs to

https://interopio.com/logging/apps/<accountId>/<environmentId>/<appId>/logs

The format of the logging data object can be:

{ 
        "accountId": "string", (Required) 
        "appId": "string", (Required) 
        "body": "string", (Required - this represents the actual log statement)
        "containsPhi": true, (Required - this indicates if this log has any PHI) 
        "environmentId": "string", (Required) 
        "httpErrorCode": "string", 
        "ipAddress": "string", 
        "labels": "string", 
        "logLevel": "DEBUG", (Required. Acceptable values are: DEBUG, INFO, WARN, ERROR)
        "metadata": "string", 
        "userAgent": "string" 
}

 

Other settings: If the environment on which the application is registered does not support PHI, and the application is attempting to log a statement containing PHI data, then the interopiO logging service will reject this log statement and not save it. 

Viewing logs:

Application logs can be viewed in the interopiO™ admin console which makes a call to interopiO™'s logging service.

These logs can be viewed only when the application has been enabled the application logging in the application details. 

There is also capability to search logs and filter logs by date and logging level.

System logs for proxied launches:

In addition to any logs recorded by the application itself, the interopiO™ platform will log events and errors during the course of a proxied launch.  Nothing is required to set this up, it is enabled by default for all apps activated on one or more gateways requiring a SMART launch proxy.  These logs are viewable alongside application logs.

In addition to logging system events as they occur, interopiO™ will also detect incomplete launches.  In the event that a launch is initiated but an access token is never granted, the platform will detect this pithing 5 minutes and issue a log statement indicating an incomplete launch.

 

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.