@appneurox/logging-service-sdk
v0.1.0
Published
Logging Service client for the standalone microservice or any brand API that mounts it.
Readme
@appneurox/logging-service-sdk
Client for Logging Service. Works in Node 18+, browsers, React Native and edge runtimes.
import { createLoggingServiceClient } from '@appneurox/logging-service-sdk';
// Standalone microservice
const direct = createLoggingServiceClient({ token, tenantId });
// Same module through a brand API (modular monolith)
const viaBrand = createLoggingServiceClient({ monolithUrl: 'https://<brand>-api.appneurox.com', token, tenantId });
await viaBrand.metadata();
await viaBrand.execute('<operation>', { /* payload */ });Errors throw ApiError (status, code, requestId). Brand SDKs (@appneurox/<brand>-sdk)
bundle this client with the other services that brand uses.
