mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
added internalConsole
This commit is contained in:
parent
53c647aadd
commit
94cec32026
@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
serverManifest: require("./serverManifest"),
|
serverManifest: require("./serverManifest"),
|
||||||
outputServerError: require("./outputServerError"),
|
outputServerError: require("./outputServerError"),
|
||||||
|
internalConsole: require("./internalConsole"),
|
||||||
}
|
}
|
37
src/server/lib/internalConsole/index.js
Normal file
37
src/server/lib/internalConsole/index.js
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
module.exports = class InternalConsole {
|
||||||
|
static log = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.log(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static error = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.error(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static warn = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.warn(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static info = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.info(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static debug = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.debug(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static table = (...args) => {
|
||||||
|
if (!global.consoleSilent) {
|
||||||
|
console.table(...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user