coreybutler / node-windows

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

Disable event logging #186

Closed HekMe closed 4 years ago

HekMe commented 6 years ago

Any way to disable event logging?

Thanks

543802360 commented 6 years ago

I have the same question

HekMe commented 6 years ago

I see that there's new update, but without this option. Will it be implemented? Thanks

jdziat commented 6 years ago

Can you give me some more specifics around this? I’m not sure why you would want to disable this when you can just choose to ignore it.

HekMe commented 6 years ago

We don't need it, cause we have our own logging solutions. So it's just wasting space on our clients, endpoints and our distributed backup network. And we'd like to have silent installation/life of our apps.

rhartvig commented 4 years ago

exact same situation as @HekMe - did we get a way to disable it?

rhartvig commented 4 years ago

Found a way to do this, in case others need it:

svc = new Service({
  ...
  logging: {
    mode: 'none'
  }
})

Remember to reinstall. For details see node_modules/node-windows/lib/winsw.js