winstonjs/logform

[Bug]: json space is not working

lake2 opened this issue · 1 comments

lake2 commented

The problem

combile(
json({
space: 2,
})
)

logger.info('2 %j', { a: { b: { c: { g: { e: { f: 1 } } } } } });

output 2 {"a":{"b":{"c":{"g":{"e":{"f":1}}}}}}

What version of Logform presents the issue?

2.4.1

What version of Node are you using?

v16.12.0

If this worked in a previous version of Logform, which was it?

No response

Minimum Working Example

No response

Additional information

No response

🔎 Search Terms

json splat

wbt commented

Sorry, I'm not sure how to parse this error report. You can try asking a version of this on StackOverflow as it seems likely to be a usage question, but you'll need a more completely-filled out version of the template for folks there to understand the question too.