Interface LogEntry

Represents a single log entry in the system. Contains all information about an event, execution, or operation.

interface LogEntry {
    id: string;
    timestamp: Date;
    level: "debug" | "info" | "warn" | "error";
    message: string;
    context?: string;
    shinobi_id?: string;
    kata_id?: string;
    shuriken_id?: string;
    execution_time?: number;
    token_usage?: any;
    estimated_cost?: number;
    file_path?: string;
    metadata?: Record<string, any>;
}

Properties

id: string

Unique identifier for this log entry

timestamp: Date

When this log entry was created

level: "debug" | "info" | "warn" | "error"

Severity level of the log entry

message: string

The main log message

context?: string

Optional context information (e.g., kata name, shinobi role)

shinobi_id?: string

ID of the Shinobi if this log is related to Shinobi execution

kata_id?: string

ID of the Kata if this log is related to Kata execution

shuriken_id?: string

ID of the Shuriken if this log is related to Shuriken execution

execution_time?: number

Execution time in milliseconds for performance tracking

token_usage?: any

Token usage information for cost tracking

estimated_cost?: number

Estimated cost in USD for billing tracking

file_path?: string

File path for file-based logging operations

metadata?: Record<string, any>

Additional structured metadata