coreybutler / coreybutler/node-windows

logpath property is not working

Open
#365 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
368
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Service configuration shown in the issue and trace how the logpath property is handled for Windows services. Confirm the expected custom path behavior and verify that logs are written to the configured file rather than the default daemon folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.