mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-09-14 02:59:06 +00:00
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
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,
|
||
|
|
};
|
||
|
|
}
|