Hi,
I was trying to modify the logs path from the default daemon folder to a custom folder using the logpath property as follows:
// Create a new service object
var svc = new Service({
name:'Hello World',
description: 'The nodejs.org example web server.',
script: 'C:\path\to\helloworld.js',
logpath:'myCustomPath\helloworldLogs.log',
nodeOptions: [
'--harmony',
'--max_old_space_size=4096'
]
//, workingDirectory: '...'
//, allowServiceLogon: true
});
Hi, I was trying to modify the logs path from the default daemon folder to a custom folder using the logpath property as follows: // Create a new service object var svc = new Service({ name:'Hello World', description: 'The nodejs.org example web server.', script: 'C:\path\to\helloworld.js', logpath:'myCustomPath\helloworldLogs.log', nodeOptions: [ '--harmony', '--max_old_space_size=4096' ] //, workingDirectory: '...' //, allowServiceLogon: true });
but it did not work. Could you please help