openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 716 B
JavaScript
import { t as isVerbose } from "./global-state-DXCtmsFO.mjs";
import { i as getLogger, s as isFileLogLevelEnabled } from "./logger-1QDNfT7Y.mjs";
import { r as theme } from "./theme-BOI0xyRZ.mjs";
//#region src/globals.ts
function shouldLogVerbose() {
return isVerbose() || isFileLogLevelEnabled("debug");
}
function logVerbose(e) {
if (!shouldLogVerbose()) return;
try {
getLogger().debug({ message: e }, "verbose");
} catch {}
if (!isVerbose()) return;
console.log(theme.muted(e));
}
const success = theme.success;
const warn = theme.warn;
const info = theme.info;
const danger = theme.error;
//#endregion
export { success as a, shouldLogVerbose as i, info as n, warn as o, logVerbose as r, danger as t };