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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -