1
0
mirror of https://git.hibas.dev/OpenServer/NodeLogging.git synced 2025-07-01 12:41:11 +00:00

Adding option to disable default Logging

This commit is contained in:
Fabian Stamm
2018-09-20 19:38:55 +02:00
parent 3f035ad1b9
commit abba0119c9
4 changed files with 11 additions and 4 deletions

View File

@ -283,7 +283,11 @@ export class LoggingBase {
return { size: 0, stream: undefined };
}
}
export const Logging = new LoggingBase();
export let Logging = undefined;
if (process.env.LOGGING_NO_DEFAULT !== "true") {
Logging = new LoggingBase();
}
export default Logging;
function fsUnlink(path) {