Question For winston library from the tutorial

Hope you guys are well :slightly_smiling_face:
I was watching the nodeJs ultimate course. I have a question about the " Handling and logging errors " section… when you extract all the modules and put them in separate files and export them, you are using:

require("./path ")();

here you are calling the function from that path file… but for the loggin.js you are only using:


but not calling the functions

can you please tell me what makes this difference??

Why we are not calling the function here…
also if I call the function with the ( ) then the app stops showing me anything on the Terminal.

Please Help me :slight_smile: