Compare commits

..

No commits in common. "3b3052fd1c6cc863cb9cb088fef0425e6f88ec03" and "0c155c365ed1a4c3a1cef081f03d0b610dba33af" have entirely different histories.

3 changed files with 1 additions and 22 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@navy.gif/logger",
"version": "1.2.5",
"version": "1.2.4",
"description": "Logging thing",
"main": "index.js",
"author": "Navy.gif",

View File

@ -36,10 +36,6 @@ class LoggerClient {
return this.#_logLevel;
}
get logLevels () {
return Object.keys(this.#_logLevelMapping);
}
setLogLevel (level = 'info') {
if (typeof level === 'number')
this.#_logLevel = level;

View File

@ -54,23 +54,6 @@ class MasterLogger {
}
get logLevel () {
return this.#_logLevel;
}
get logLevels () {
return Object.keys(this.#_logLevelMapping);
}
setLogLevel (level = 'info') {
if (typeof level === 'number')
this.#_logLevel = level;
else if (typeof level === 'string')
this.#_logLevel = this.#_logLevelMapping[level.toLowerCase()];
else
throw new Error(`Invalid log level type, expected string or number, got ${typeof level}`);
}
attach (shard) {
shard.on('message', (msg) => {
if (!msg[this.#_guard])