Skip to main content

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

FieldTypeDefaultPurpose
isDev / is_dev / IsDevboolrequiredSafety gate for non-production usage
port / Portnumber8080WebSocket port in live mode
serviceName / service_name / ServiceNamestringlanguage-specificService label in metadata
ciMode / ci_mode / CIModebool?auto-detectForce mode or rely on CI detection
logFilePath / log_file_path / LogFilePathstring./slogx_logs/<service>.ndjsonNDJSON output path
maxEntries / max_entries / MaxEntriesnumber10000Rolling entry limit in CI mode

Language pages