Reactotron: Expanding logs for console.tron.log()

Created on 2 Aug 2017  路  6Comments  路  Source: infinitered/reactotron

Can I expand logs from console.tron.log() in the same fashion as it is in "Action" Timeline?
By clicking on "Action" I can inspect object but when I log console.tron.log(logs for cart: ${this.props.cart})
I am getting just a feedback that I have arrays of objects, and no possibility to inspect them.
Is there a way to inspect objects using console.tron.log() with "``" to write a string to name a logs?

screen shot 2017-08-02 at 14 02 25

question

Most helpful comment

A couple of options (sorry for butting in @rmevans9 -- you're probably typing something right now too ).

console.tron.log({ cart: this.props.cart })
console.tron.display({ name: 'CART', value: this.props.cart, preview: 'omg whats inside?' })

All 6 comments

How are you passing the data to console.tron.log?

console.tron.log(${this.props.cart})

with "``"

Ok, so I can just pass the this.props.cart and inpsect the object, but I would like to use "``" to write a string to know what I am logging.

I updated the question

A couple of options (sorry for butting in @rmevans9 -- you're probably typing something right now too ).

console.tron.log({ cart: this.props.cart })
console.tron.display({ name: 'CART', value: this.props.cart, preview: 'omg whats inside?' })

I was indeed... gotta work on those typing skills to get faster at my responses lol.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferminmoli picture ferminmoli  路  4Comments

scally picture scally  路  5Comments

Anahkiasen picture Anahkiasen  路  5Comments

skellock picture skellock  路  4Comments

nonameolsson picture nonameolsson  路  5Comments