UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

31 lines (30 loc) 976 B
import { DebugLogPropertiesInput, WorkloadHttpClient } from "@trigger.dev/core/v3/runEngineWorker"; import { RunnerEnv } from "./env.js"; export type SendDebugLogOptions = { runId?: string; message: string; date?: Date; properties?: DebugLogPropertiesInput; print?: boolean; }; export interface RunLogger { sendDebugLog(options: SendDebugLogOptions): void; } export type RunLoggerOptions = { httpClient: WorkloadHttpClient; env: RunnerEnv; }; export declare class ManagedRunLogger implements RunLogger { private readonly httpClient; private readonly env; private readonly logger; constructor(opts: RunLoggerOptions); sendDebugLog({ runId, message, date, properties, print }: SendDebugLogOptions): void; } export declare class ConsoleRunLogger implements RunLogger { private readonly print; constructor(opts?: { print?: boolean; }); sendDebugLog({ message, properties }: SendDebugLogOptions): void; }