mirror of
https://git.stamm.me/OpenServer/NodeLogging.git
synced 2024-11-22 11:19:23 +00:00
Adding multi line stack trace in console, not in file
This commit is contained in:
parent
8f4b7c19e0
commit
82cff60b68
@ -51,7 +51,7 @@ class Logging {
|
||||
}
|
||||
let m = "";
|
||||
error.stack.forEach(e => {
|
||||
m += e.toString() + " | ";
|
||||
m += e.toString() + "\n";
|
||||
});
|
||||
var message = error.name + " " + error.message + "\n" + m;
|
||||
Logging.message(LoggingTypes.Error, [message]);
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "logger-perfcloud",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.8",
|
||||
"description": "",
|
||||
"main": "out/index.js",
|
||||
"types": "out/index.d.ts",
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user