IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

logging.ts

Buka raw
export type LogLevel = "debug" | "info" | "warn" | "error";

export type LogLayer =
  | "api"
  | "db"
  | "hook"
  | "realtime"
  | "service"
  | "system";

export type LogStatus = "start" | "success" | "error" | "info";

export type StructuredLogEntry = {
  timestamp: string;
  runtime: "server" | "client";
  level: LogLevel;
  layer: LogLayer;
  action: string;
  status: LogStatus;
  durationMs?: number;
  requestId?: string;
  message?: string;
  meta?: Record<string, unknown>;
  error?: {
    name?: string;
    message: string;
    stack?: string;
  };
};
byte
567
baris
30
Jenis
ts
Commit terakhir
16 Oktober 2026