Skip to content
New issue

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

logpath property is not working #365

Open
Kriess2507 opened this issue Jan 9, 2024 · 2 comments
Open

logpath property is not working #365

Kriess2507 opened this issue Jan 9, 2024 · 2 comments

Comments

@Kriess2507
Copy link

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
Copy link
Author

@coreybutler could you please help me with this

@coreybutler
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants