SDK
Event Fields Reference
Full specification of the structured event schema and metadata objects supported by NotLogs.
Core Event Fields
| Field | Type | Description |
|---|---|---|
| message | string | Human-readable description of the log event |
| type | string | “info” | “error” | “warning” | “metric” | “audit” | “debug” | “success” |
| importance | string | “critical” | “high” | “medium” | “low” |
| service | string | Microservice or module name (e.g. “auth-api”) |
| subsystem | string | “db” | “cache” | “queue” | “network” |
| operation | string | Function or action name (e.g. “stripe_charge”) |
Importance Levels
CriticalSev-1 Outages
HighDegraded Actions
MediumStandard Logs
LowVerbose / Trace
Tracking & Security Metadata
interface LogPayload {
track?: {
userId?: string;
sessionId?: string;
traceId?: string;
spanId?: string;
};
security?: {
ip?: string;
userAgent?: string;
authStatus?: "success" | "failed" | "expired";
userRole?: "super-admin" | "admin" | "user";
};
metrics?: {
durationMs?: number;
memoryUsageMb?: number;
statusCode?: number;
};
}