adobe / aio-lib-core-logging

Node.js Logger module for use by the Adobe I/O SDK
https://adobe.io
Apache License 2.0
2 stars 4 forks source link

Add a console.table equivalent log formatter #35

Open pseudovar opened 1 year ago

pseudovar commented 1 year ago

Expected Behaviour

To help with debugging and building actions, a console.table() equivalent for logger would be preferential. This would allow for Arrays and Objects to be passed and output as a table in the various log locations.

Actual Behaviour

Currently not available (or not documented?), have to us logger.info/debug/etc and output a string.

Reproduce Scenario (including but not limited to)

N/A

Steps to Reproduce

N/A

Platform and Version

v2.0.0

Sample Code that illustrates the problem

N/A

Logs taken while reproducing problem

N/A

shazron commented 1 year ago

We could use https://www.npmjs.com/package/cli-table Spec: https://developer.mozilla.org/en-US/docs/Web/API/console/table

aiojbot commented 1 year ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1960