Adding multi line stack trace in console, not in file

This commit is contained in:
Fabian Stamm 2017-10-21 14:40:54 +02:00
parent 8f4b7c19e0
commit 82cff60b68
4 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ class Logging {
} }
let m = ""; let m = "";
error.stack.forEach(e => { error.stack.forEach(e => {
m += e.toString() + " | "; m += e.toString() + "\n";
}); });
var message = error.name + " " + error.message + "\n" + m; var message = error.name + " " + error.message + "\n" + m;
Logging.message(LoggingTypes.Error, [message]); Logging.message(LoggingTypes.Error, [message]);

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "logger-perfcloud", "name": "logger-perfcloud",
"version": "1.0.6", "version": "1.0.8",
"description": "", "description": "",
"main": "out/index.js", "main": "out/index.js",
"types": "out/index.d.ts", "types": "out/index.d.ts",

View File

@ -69,7 +69,7 @@ export class Logging {
} }
let m = ""; let m = "";
(<any>error.stack).forEach(e => { (<any>error.stack).forEach(e => {
m += e.toString() + " | "; m += e.toString() + "\n";
}) })
var message = error.name + " " + error.message + "\n" + m; var message = error.name + " " + error.message + "\n" + m;
Logging.message(LoggingTypes.Error, [message]); Logging.message(LoggingTypes.Error, [message]);