Filip Malek
Sep 5, 2018 · 1 min read

Finally something that works!
One thing that almost got me to the edge was trying to figure out how to use it in different files.

when I tried using logger.info(‘some text here’) (const logger= require(‘/path/winstonFile’); it gave me logger.info is not a function. It drove me nuts and all because I had to add ‘.logger’ at the end of my import statement…