Files
Termix/src/backend/ssh/file-manager-log.ts
T

16 lines
355 B
TypeScript
Raw Normal View History

2026-06-04 15:16:53 -04:00
import type { ConnectionStage, LogEntry } from "../../types/connection-log.js";
export function createConnectionLog(
type: "info" | "success" | "warning" | "error",
stage: ConnectionStage,
message: string,
details?: Record<string, unknown>,
): Omit<LogEntry, "id" | "timestamp"> {
return {
type,
stage,
message,
details,
};
}