coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.83k stars 356 forks source link

logpath property is not working #365

Open Kriess2507 opened 10 months ago

Kriess2507 commented 10 months ago

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

Kriess2507 commented 10 months ago

@coreybutler could you please help me with this

coreybutler commented 10 months ago

logPath needs to be an absolute path, not a relative one.