API Reference
Complete API documentation for Logit, auto-generated from source code.
Modules
API-Direct logging methods for libraries and manual instrumentation.
Classes
Attributes-Type-safe structured attribute storage for log events.
Backend(abstract) -Abstract base class for log output destinations.
Config-Configuration builder for setting up Logit logging infrastructure.
Console-Backend that writes log events to the console (STDOUT).
Context-Manages contextual data that is automatically included in log events.
File-Backend that writes log events to a file.
Formatter(abstract) -Abstract base class for log event formatters.
Human-Human-readable formatter with colorized output.
JSON-JSON formatter for structured log output.
Null-Null backend that discards all log events.
OTLP-Backend that exports logs to an OpenTelemetry collector via OTLP/HTTP.
Redaction-Manages sensitive data redaction for log output.
Span-Represents a traced operation with timing, attributes, and trace context.
Tracer-Routes log events to registered backends.
Structs
Event-A structured log event with OpenTelemetry-compatible fields.
ExceptionInfo-Structured exception information for log events.
NamespaceBinding-Binds a namespace pattern to a log level for filtering.
SpanEvent-Represents an event that occurred during a span's lifetime.
Enums
LogLevel-Log severity levels, ordered from least to most severe.
Status-Status of an event/span, following OpenTelemetry conventions.
Annotations
Log-Annotation to mark methods for automatic logging instrumentation.