logger/types.ts

MemTensor/MemOS · apps/memos-local-plugin/core/logger/types.ts · typescript · Apache-2.0
ai

Type-safe logger interface for structured logging and performance tracking

// Source: https://github.com/MemTensor/MemOS | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Public types for the logger.
 *
 * `LogRecord`, `LogLevel`, `LogKind`, `LogContext` are re-exported from
 * `agent-contract/log-record.ts` so non-TS adapters can rely on the same
 * shape.
 */

import type {
  LogLevel,
  LogKind,
  LogRecord,
  LogContext,
  SerializedLogError,
} from "../../agent-contract/log-record.js";

export type { LogLevel, LogKind, LogRecord, LogContext, SerializedLogError };

// ─── Public Logger interface ────────────────────────────────────────────────

export interface LlmLogPayload {
  provider: string;
  model: string;
  /** Human label for which call

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key