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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user