openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 620 B
JavaScript
import{t as isVerbose}from"./global-state-BYcIiONI.mjs";import{a as getLogger,c as isFileLogLevelEnabled}from"./logger-bB_ZfEX5.mjs";import{r as theme}from"./theme-DS2CtI9X.mjs";
//!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;export{success as a,shouldLogVerbose as i,info as n,warn as o,logVerbose as r,danger as t};