MCPcopy
hub / github.com/chavyleung/scripts / info

Method info

Env.js:823–832  ·  view source on GitHub ↗
(...logs)

Source from the content-addressed store, hash-verified

821 }
822
823 info(...logs) {
824 if (this.logLevels[this.logLevel] <= this.logLevels.info) {
825 if (logs.length > 0) {
826 this.logs = [...this.logs, ...logs]
827 }
828 console.log(
829 `${this.logLevelPrefixs.info}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}`
830 )
831 }
832 }
833
834 warn(...logs) {
835 if (this.logLevels[this.logLevel] <= this.logLevels.warn) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected