Archived
1
0

Add some debug logging to the shared process

This commit is contained in:
Asher
2019-01-22 13:11:54 -06:00
committed by Kyle Carberry
parent 86c1c9993e
commit e7d7ff3733
2 changed files with 9 additions and 5 deletions

View File

@ -246,7 +246,7 @@ export class ServerFormatter extends Formatter {
*/
export class Logger {
public level = Level.Debug;
public level = Level.Info;
private readonly nameColor?: string;
private muted: boolean;
@ -335,6 +335,7 @@ export class Logger {
*/
public named(name: string, ...fields: FieldArray): Logger {
const l = new Logger(this._formatter, name, fields);
l.level = this.level;
if (this.muted) {
l.mute();
}