Skip to main content

LOG API Reference

Module Information

Service Files:

  • Private: service/private/log.js

Available Services: 1 Documented Services: 1


log.read

Read paginated entries from the server debug log file (log_dir/instance_name/debug.log). Reads the file, splits by newline, reverses the array to return most recent entries first, and returns a page of 20 entries starting from the requested page offset. Each line is parsed as JSON via parseJSON. Requires special_access precheck: the authenticated user must have remit >= 2 in the visitor table.

PropertyValue
ScopeHub (requires hub context)
PermissionAnonymous (0)

Endpoint:

https://hostname/-/svc/log.read

Parameters

ParameterTypeRequiredDefaultDescription
pageintegerNo1-

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
DENIED-User does not have sufficient remit level (remit < 2) to access logs
INTERNAL_ERROR-Failed to read the debug log file from the filesystem

  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes