JavaScriptlogging对象而不在\ n上执行换行符

我有一个对象:

class MyObject{ constructor(prop_a, prop_b, prop_c) { this.property_a = property_a; this.property_b = property_b; this.property_c = property_c; } const myObject = new MyObject(...data); 

它在日志输出中看起来像这样:

 myObject { property_a:0001, property_b:somestringsandlettersthat\n havenewlines\n andmorenwelines\n andmorenwelines, property_c:someotherstuff } 

但我想要这样的:

 myObject { property_a:0001, property_b:somestringsandlettersthat havenewlines andmorenwelines, andmorenwelines property_c:someotherstuff } 

新行也应该在\ n不仅在新的属性上。

我使用的logging器是: https : //github.com/VeliovGroup/Meteor-logger

在console.log(myObject)中看起来更糟糕:

 myObject { property_a:0001, property_b:somestringsandlettersthat\n havenewlines\n andmorenwelines\n andmorenwelines, property_c:someotherstuff } 

有人有一个想法?