For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/logs/interfaces/LoggerOptions.md.
  • English
  • Interface: LoggerOptions

    Defined in: logs/logger.ts:13

    Logger 构建配置选项。

    Properties

    PropertyTypeDescriptionDefined in
    sourcestring日志来源标识(例如 "db"、"qq"、"bds-tools"、"updater"、"system")。logs/logger.ts:15
    sinks?Sink[]日志输出目标列表(缺省默认为 [createStdoutSink()])。logs/logger.ts:17
    subscribers?(entry: LogEntry) => void[]订阅者回调列表(每次触发日志时同步广播,与 sink 并行分发)。logs/logger.ts:19
    color?boolean格式化输出给 sink 时是否启用彩色代码(默认为 true)。logs/logger.ts:21