mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 07:18:22 +08:00
添加是否登录日志
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { debug } from "../config.js"
|
||||
import { getLogDateTime } from "./time.js"
|
||||
|
||||
function basePrint(color, msg) {
|
||||
@@ -27,7 +28,12 @@ function printMagenta(msg) {
|
||||
function printGrey(msg) {
|
||||
basePrint("\x1B[2m", msg)
|
||||
}
|
||||
function printDebug(obj) {
|
||||
if (debug) {
|
||||
console.dir(obj, { depth: null })
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
printGreen, printBlue, printRed, printYellow, printMagenta, printGrey
|
||||
printGreen, printBlue, printRed, printYellow, printMagenta, printGrey, printDebug
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user