Depends mostly on how you write your javascript code. Can you give some samples?
One way to solve it is to use the synchronous methods, which are provided by most node modules (instead of their async counterparts using callbacks). Good luck. On Tuesday, April 5, 2016 at 4:55:50 AM UTC+2, Vasavi Kaza wrote: > > Hi, > > Created a custom winston logger. It works fine logging to console and > file. However, all my log messages are printed once at the beginning of the > code instead of wating step by step to execute. Especially, these print the > log statements farther in the code than the failed statement that ends the > program. How do I fix this. Could not find how to resolve this. New to > nodejs and in learning process. May be a silly question but please help. > > Thanks, > Vasavi Kaza > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/a3aecc74-3b0c-4214-9eeb-487136f78423%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
