MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / formatTimestamp

Method formatTimestamp

src/utils/logger.js:111–121  ·  view source on GitHub ↗

* 格式化时间戳 * @returns {string}

()

Source from the content-addressed store, hash-verified

109 // de silenciar: un valor mal escrito no puede apagar la observabilidad entera.
110 return this.resolveLevel(level) >= this.resolveLevel(this.options.level)
111 }
112
113 /**
114 * Normaliza un nivel a su peso numérico. Acepta cualquier caja; desconocido → INFO.
115 * @param {string} level
116 * @returns {number}
117 */
118 resolveLevel(level) {
119 const key = String(level || '').toUpperCase()
120 return Object.hasOwn(this.levels, key) ? this.levels[key] : this.levels.INFO
121 }
122
123 /**
124 * 格式化时间戳

Callers 1

formatMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected