You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When logging out a number of messages, when doing a query ordering by desc, will return the oldest messages then order them by time.
varfileLogger=newFileLoggerAdapter();for(vari=0;i<10;i++){fileLogger.info(i);}// Wait for the logs to flush before querying setTimeout(function(){fileLogger.query({size:2,order: 'desc'}).then((res)=>{console.log(res)});},100);
When logging out a number of messages, when doing a query ordering by desc, will return the oldest messages then order them by time.
In this output
res
will beIts not until the size is expanded to all of the log messages that it gets them all in the right order.
Ideally this should return
The text was updated successfully, but these errors were encountered: