Web How to implement logging in Polymer ? Bunyan in Polymer

Web How to implement logging in Polymer ? Bunyan in Polymer,web,polymer,web-component,bunyan,Web,Polymer,Web Component,Bunyan,Is it possible to import modules like bunyan or fs (node.js filesystem) to custom component. I am trying to replicate Java's log4j usage in Polymer.

Is it possible to import modules like bunyan or fs (node.js filesystem) to custom component.

I am trying to replicate Java's log4j usage in Polymer.


#1

Welcome to Stack Overflow! Please take the tour, have a look around, and read through the help center, in particular How do I ask a good question? and What topics can I ask about here?. From that second link: "Questions asking for homework help must include a summary of the work you've done so far to solve the problem, and a description of the difficulty you are having solving it."

#2

It's not possible to access file system in the browser context if it's what you want.

#3

@Supersharp I am trying to include Bunyan logging framework to polymer component.

#4

Yes but this logging framework access the filesystem doesn't it?

#5

Yes. It access filesystem. Do you suggest any other way to capture usage logs in Polymer ? One way i could think is to perform Post logs to server. Any other better option. Thanks in advance ...