UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

26 lines (25 loc) 849 B
import { r as theme } from "./theme-vjDs9tao.js"; import { t as isVerbose } from "./global-state-BAD7XgmL.js"; import { i as getLogger, o as isFileLogLevelEnabled } from "./logger-Brhy0cvC.js"; //#region src/globals.ts function shouldLogVerbose() { return isVerbose() || isFileLogLevelEnabled("debug"); } function logVerbose(message) { if (!shouldLogVerbose()) return; try { getLogger().debug({ message }, "verbose"); } catch {} if (!isVerbose()) return; console.log(theme.muted(message)); } function logVerboseConsole(message) { if (!isVerbose()) return; console.log(theme.muted(message)); } const success = theme.success; const warn = theme.warn; const info = theme.info; const danger = theme.error; //#endregion export { shouldLogVerbose as a, logVerboseConsole as i, info as n, success as o, logVerbose as r, warn as s, danger as t };