Skip to content

logpath property is not working #365

@Kriess2507

Description

@Kriess2507

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions