Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
enableFileLogging() {
if (this.logWriter) {
return;
}
this.logWriter = rfs.createStream(Logger.logFileGenerator, {
size: '10M',
interval: '1d',
path: store.getLogDir(),
});
}