move errors to fit in logger.error
This commit is contained in:
parent
447dca754b
commit
9295f90741
4 changed files with 16 additions and 9 deletions
|
@ -130,7 +130,7 @@ class Logger {
|
|||
}
|
||||
|
||||
public error(
|
||||
message: string | string[] | Error | Error[],
|
||||
message: string | Error | (string | Error)[],
|
||||
breakLine: boolean = false,
|
||||
): void {
|
||||
const stack: string = new Error().stack || "";
|
||||
|
@ -183,6 +183,10 @@ class Logger {
|
|||
this.writeConsoleMessageColored(logMessageParts, breakLine);
|
||||
}
|
||||
|
||||
public space(): void {
|
||||
console.log();
|
||||
}
|
||||
|
||||
private writeConsoleMessageColored(
|
||||
logMessageParts: ILogMessageParts,
|
||||
breakLine: boolean = false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue