SDK Overview
slogx has SDKs for TypeScript, Python, Go, and Rust.
All SDKs expose the same logging levels and comparable runtime controls:
- live WebSocket mode for local development
- CI NDJSON mode for replay
- call-site metadata (
file,line,func,service) - stacktrace capture (with special handling for exceptions/errors)
Shared config fields
| Field | Type | Default | Purpose |
|---|---|---|---|
isDev / is_dev / IsDev | bool | required | Safety gate for non-production usage |
port / Port | number | 8080 | WebSocket port in live mode |
serviceName / service_name / ServiceName | string | language-specific | Service label in metadata |
ciMode / ci_mode / CIMode | bool? | auto-detect | Force mode or rely on CI detection |
logFilePath / log_file_path / LogFilePath | string | ./slogx_logs/<service>.ndjson | NDJSON output path |
maxEntries / max_entries / MaxEntries | number | 10000 | Rolling entry limit in CI mode |