mirror of
https://git.hibas.dev/OpenServer/NodeLogging.git
synced 2025-07-01 04:31:23 +00:00
Adding multi line stack trace in console, not in file
This commit is contained in:
@ -69,7 +69,7 @@ export class Logging {
|
||||
}
|
||||
let m = "";
|
||||
(<any>error.stack).forEach(e => {
|
||||
m += e.toString() + " | ";
|
||||
m += e.toString() + "\n";
|
||||
})
|
||||
var message = error.name + " " + error.message + "\n" + m;
|
||||
Logging.message(LoggingTypes.Error, [message]);
|
||||
@ -125,7 +125,7 @@ export class Logging {
|
||||
}
|
||||
|
||||
private static writeMessageToFile(message: string, error?: boolean) {
|
||||
Logging.queue.push({ message: message.replace("\n", ""), error: error });
|
||||
Logging.queue.push({ message: message.replace("\n", " "), error: error });
|
||||
Logging.checkQueue();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user