Tough to say without seeing code, but it sounds like this sort of thing:
logger.info('msg1'); // this gets logged 1st
someAsyncFunc(function(){ // callback
l
});
logger.info('msg2'); //this gets logged 2nd
On Monday, April 4, 2016 at 10:55:50 PM UTC-4, 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/dc296a10-ec7a-444d-b33b-506b7baa8070%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.