question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

output of objects doesn't print their properties values

See original GitHub issue

I’ve upgraded electron-log from version 2.2.17 to the latest 3.0.3 on the latest version printing objects from the renderer process outputs the properties type (and not their values)

e.g. if I have a JS object:

const obj = { username: 'Me' };

When printing the object using one of the log’s functions I’m getting: { username: [Getter/Setter] }

This wasn’t the case in the previous 2.x releases…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
megahertzcommented, Apr 4, 2019

@fjrial Will look at the problem later.

It seems that you receive console message form mainConsole/rendererConsole. #122. I know it can confuse someone, so I have a plan to change its interface later.

0reactions
megahertzcommented, Jul 17, 2019

It’ll be fixed in v4

Read more comments on GitHub >

github_iconTop Results From Across the Web

why console.log doesn't show values of properties added by ...
In last output why it doesn't show level when whole object is printed. It do shows when console.log(Mateen.level) is used. javascript.
Read more >
App object in Power Apps - Power Platform | Microsoft Learn
ActiveScreen property. The ActiveScreen property identifies the screen that's showing. This property returns a screen object, which you can ...
Read more >
Printing Object properties in UI - GIS Stack Exchange
I am trying to print the distinct values from the "crop" column of a shape file. I am able to print "crop wise...
Read more >
Object.keys() - JavaScript - MDN Web Docs
The Object.keys() method returns an array of a given object's own enumerable string-keyed property names.
Read more >
Classes - Object-Oriented Programming in Python
Write a function which prints out the names and values of all the custom attributes of any object that is passed in as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found