DEV Community

Cover image for Node.js : Winston Logging
dev
dev

Posted on

2 4

Node.js : Winston Logging

Hey,

I am working on Nodejs and building a logger for the application I am working on. I am using Winston for logging purposes. I am having issues with logging the module/file name from where I am logging it.

If anyone has worked on it, can you please guide on the same. I do not want alternates for Winston, if anyone could help me with it please drop it in the comments.

It will be very useful.
Alt Text

Disclaimer : Don't give StackOverflow answers, I have tried them already. Apart from that, anything solution would do.```



Thanks :) 

Top comments (1)

Collapse
 
pentacular profile image
pentacular

I suggest asking a meaningful question. :)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay