prepare for being available on multiple domain names
This commit is contained in:
@@ -48,25 +48,25 @@ export class Logger {
|
||||
if (!enableVerboseLog) {
|
||||
return;
|
||||
}
|
||||
console.debug(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.debug(new Date().toISOString(), `- ${this.name} -`, '- [VRBSE] -', ...params);
|
||||
}
|
||||
public debug(...params: any[]) {
|
||||
if (!Logger.isDebugEnabled()) {
|
||||
return;
|
||||
}
|
||||
console.debug(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.debug(new Date().toISOString(), `- ${this.name} -`, '- [DEBUG] -', ...params);
|
||||
}
|
||||
public log(...params: any[]) {
|
||||
console.log(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.log(new Date().toISOString(), `- ${this.name} -`, '- [ LOG ] -', ...params);
|
||||
}
|
||||
public info(...params: any[]) {
|
||||
console.info(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.info(new Date().toISOString(), `- ${this.name} -`, '- [INFO ] -', ...params);
|
||||
}
|
||||
public warn(...params: any[]) {
|
||||
console.warn(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.warn(new Date().toISOString(), `- ${this.name} -`, '- [WARN ] -', ...params);
|
||||
}
|
||||
public error(...params: any[]) {
|
||||
console.error(new Date().toISOString(), `- ${this.name} -`, ...params);
|
||||
console.error(new Date().toISOString(), `- ${this.name} -`, '- [ERROR] -', ...params);
|
||||
}
|
||||
|
||||
public static error(...params: any[]) {
|
||||
|
Reference in New Issue
Block a user