We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue:
How To Reproduce:
start node-windows server in daemon the err.log and out.log will save the logs of service. but it seems that it could not contain too much logs.
Expected Behavior:
I can choose the size of logs
Desktop:
The text was updated successfully, but these errors were encountered:
node-windows has no constraints on the log size, but winsw does. This can be overridden using the logging configiuration attribute in the server.
logging
For example:
var svc = new Service({ name:'Hello World', description: 'The nodejs.org example web server.', script: 'C:\\path\\to\\helloworld.js', logging: { mode: 'roll-by-size', sizeThreshold: 10240, // <--- change this keepFiles: 8 }, nodeOptions: [ '--harmony', '--max_old_space_size=4096' ] //, workingDirectory: '...' //, allowServiceLogon: true });
The logging configuration options are passed straight to the winsw XML configuration. You can see more options in the function comments at https://github.com/coreybutler/node-windows/blob/master/lib/winsw.js#L20-L23
Sorry, something went wrong.
No branches or pull requests
Issue:
How To Reproduce:
start node-windows server
in daemon the err.log and out.log will save the logs of service.
but it seems that it could not contain too much logs.
Expected Behavior:
I can choose the size of logs
Desktop:
The text was updated successfully, but these errors were encountered: