Comments (5)
Did you set options.flushOnExit=true in the winston constructor?
from winston-logsene.
I tried setting flushOnExit: true
in the add
call and have now tried it on the Winston
constructor as well. No change. It defaults to true
, and in fact I don't think it can be set to false
:
if (!options.flushOnExit) {
options.flushOnExit = true
}
from winston-logsene.
Please let me know, how to reproduce it. How is your program terminated? Calling process.exit (which means no async code can be executed)?
Could you please post the output of npm ls
- so we can check dependencies?
Here is what I did:
- Run the example https://github.com/sematext/winston-logsene/blob/master/example/index.js
`node exaple/index.js``
Output:
node example/index.js
2016-09-25T17:58:36.327Z winston-logsene: start flushing 1 logs before exit ...
2016-09-25T17:58:36.788Z winston-logssene: flush before exit: 1 logs send.
2016-09-25T17:58:36.989Z winston-logsene: flush: no logs in buffer
Check logs in Logsene:
from winston-logsene.
Should be fixed, something changed in logsene-js log counts, and winston-logsene should watch own logCounts. 3a967ab
Even with latest logsene-js, it works again:
node example/index.js
2016-09-25T19:04:08.075Z winston-logsene: start flushing 1 logs before exit ...
2016-09-25T19:04:08.568Z winston-logssene: flush before exit: 1 logs send.
2016-09-25T19:04:08.771Z winston-logsene: flush: no logs in buffer
from winston-logsene.
I tried with 1.2.1 and it works for me now. Thanks.
from winston-logsene.
Related Issues (15)
- Add winston-logsene to winston Transports HOT 1
- Add a Native UI or Kibana 4 screenshot to README
- Add support for handlesExceptions option HOT 5
- Can't log exception instances HOT 11
- Memory leak and process.exit issue HOT 9
- Winston-logsene is modifying objects HOT 5
- Logs not shipped if the process is very short-lived HOT 6
- Add instructions for EU instance HOT 5
- readme is out of date
- Update to work with Winston 3.x HOT 1
- Major memory leak and crash because of "flat" dependency HOT 5
- Unhandled error when unreachable is causing crash HOT 5
- tags don't appear to be received properly HOT 9
- Update/remove vulnerable packages from npm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winston-logsene.