How do I disable file logging?
Moved
Solved
Technical Support
-
Hello, is there any way I can disable file logging? I only need the console output logging. I can see this code for web install logging:
winston.configure({ level: 'verbose', format: winston.format.combine.apply(null, formats), transports: [ new winston.transports.Console({ handleExceptions: true, }), new winston.transports.File({ filename: 'logs/webinstall.log', handleExceptions: true, }), ], });
But not for global logging system. Thanks in advance.
-
-
@baris said in How do I disable file logging?:
The configuration of the logger is here https://github.com/NodeBB/NodeBB/blob/master/src/prestart.js#L12-L45
Thank you!
-
-
@baris maybe we should allow setting the log path in config.json
Then someone could just set it to
/dev/null
-
Copyright © 2024 NodeBB | Contributors