Is there a way to output multiple items in a single message? #1381
Replies: 2 comments 37 replies
-
Currently, this functionality doesn't exist. However, I think we could take the |
Beta Was this translation helpful? Give feedback.
-
@jmcdo29, I have been using Would it be possible to define the default value of Thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
-
When we run
console.log('some data:', object)
it outputssome data:
, a space and theobject
in ‘JavaScript format’ (i.e. not in valid JSON format, but similar to it).Now I’d like to use Ogma similarly, i.e. to output two or more items in one call. I understand that we cannot do it same way as we do it with
console.log()
, however, could we use, e.g., an array as the first parameter of Ogma logger methods, potentially with a flag/property in the Ogma options object (you call itmeta
) to make Ogma output the array items individually, rather than as an array?I would be okay if any object/array would be output as a valid JSON.
Beta Was this translation helpful? Give feedback.
All reactions