createWorkerLogger (lib/workerLogger.ts)

clawhub · scripts/lib/workerLogger.ts · typescript · MIT
auth

Creates a pino logger with redaction paths and optional custom destination for worker processes.

// Source: https://github.com/openclaw/clawhub | License: MIT | Copyright 2026 Peter Steinberger
// Provided via justclaw.it.com; keep this notice with the code.
import pino, { type DestinationStream, type Logger } from "pino";

export const WORKER_LOG_REDACTION_PATHS = [
  "token",
  "secret",
  "password",
  "apiKey",
  "api_key",
  "authorization",
  "Authorization",
  "headers.authorization",
  "headers.Authorization",
  "request.headers.authorization",
  "request.headers.Authorization",
  "artifact.url",
  "artifact.downloadUrl",
  "artifact.clawpackUrl",
  "artifact.signedUrl",
  "artifacts[*].url",
  "target.files[*].url",
  "target.clawpackUrl",
  "url",
  "downloadUrl",
  "clawpackUrl",
  "signedUrl",
  "error",
  "reason",
  "err.message",
  "err.stack",
  "stderr",
  "stdout",
 

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

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

Get a free API key