coreybutler / node-windows

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

logpath property is not working #365

Open Kriess2507 opened 5 months ago

Kriess2507 commented 5 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 5 months ago

@coreybutler could you please help me with this

coreybutler commented 5 months ago

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