javascript - log file redirection in node js -


i writing socket server in nodejs using websocket library, have requirement if give logfilename in server.js argument logs should redirected logfile otherwise should displayed on console.

it seems trivial issue new node js, can guys me how acheive it.

you can try using library. has file transport logger. https://github.com/winstonjs/winston


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -