/** * Lightweight file logger for the AgentWorkforce CLI. * * Modeled on Agent Relay's logger (relay/packages/utils/src/logger.ts): * - Writes structured lines to a log file so diagnostics never pollute the * terminal the user is staring at while a persona launches. * - Configurable via environment variables, read at call time for late binding. * - No external dependencies. * * Default log file: `/logs/cli.log` * (i.e. `~/.agentworkforce/workforce/logs/cli.log`). * Overrides: * AGENTWORKFORCE_LOG_FILE absolute path to the log file ('' or '-' → stderr) * AGENTWORKFORCE_LOG_LEVEL DEBUG | INFO | WARN | ERROR (default INFO) * AGENTWORKFORCE_LOG_JSON '1' to emit JSON lines instead of text */ export type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR'; /** * Create a logger for a specific component. * @param component - Component name (e.g. 'launch-metadata', 'persona-install'). */ export declare function createLogger(component: string): { debug: (msg: string, extra?: Record) => void; info: (msg: string, extra?: Record) => void; warn: (msg: string, extra?: Record) => void; error: (msg: string, extra?: Record) => void; }; /** Absolute path of the active log file, or `undefined` when logging to stderr. */ export declare function activeLogFile(): string | undefined; //# sourceMappingURL=logger.d.ts.map