API Reference

Logging & Operations

Advanced hooks for system-level observability and infrastructure orchestration, powered by the high-performance XHSC Go core.

High-Resolution Observability

Operations Subsystem

LoggingonConsoleIntercept
AuxiliaryChild Servers
MetricsPerformance Sync
SandboxOrchestration
Zero-Latency

Logging interception uses a native IPC bridge for zero overhead.

Isolation

Auxiliary servers run in fully independent execution contexts.

onConsoleIntercept

Powered by the native XHSC engine, this hook provides a performance-optimized stream of all console activity. It allows for advanced auditing, centralized logging, and secondary data sinks.

IPC Bridge
This hook is powered by the XHSC Go core via a secure IPC bridge, ensuring zero-latency log auditing even under extreme load.

Permission ID: XHS.PERM.LOGGING.CONSOLE_INTERCEPT (Privileged).

onAuxiliaryServerDeploy

Enables the deployment of independent, isolated child server instances. This is the designated method for creating auxiliary services such as documentation engines (Swagger) or administrative interfaces.

typescript
onAuxiliaryServerDeploy(ops: OpsServerManager, server: XyPrissServer): void | Promise<void> {
    // Deploy a child server on port 4000
    ops.createAuxiliaryServer({ port: 4000 });
}
OpsServerManager Methods
  • createAuxiliaryServer(options)Deploys a new isolated XyPriss server on a specified port.
  • getRouteRegistry()Returns the full registry of routes from the primary application.

Permission ID: XHS.PERM.OPS.AUXILIARY_SERVER (Privileged).

Security Permissions

Explore the static capabilities and high-privilege access IDs.