Skip to content

LogContext beta ​

TypeAlias of @v12-engine/engine

ts
export type LogContext = () => Partial<Pick<LogEntry, 'game' | 'tick'>> & {
    fields?: Record<string, unknown>;
};

What a logger adds to each of its entries: the game and the tick of a world, the fields of a part