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:
2
out/index.d.ts
vendored
2
out/index.d.ts
vendored
@ -69,7 +69,7 @@ export declare class LoggingBase {
|
||||
private writeToErrorFile(data);
|
||||
private initializeFile(file, new_file?);
|
||||
}
|
||||
export declare const Logging: LoggingBase;
|
||||
export declare let Logging: any;
|
||||
export default Logging;
|
||||
export declare enum LoggingTypes {
|
||||
Log = 0,
|
||||
|
@ -250,7 +250,10 @@ class LoggingBase {
|
||||
}
|
||||
}
|
||||
exports.LoggingBase = LoggingBase;
|
||||
exports.Logging = new LoggingBase();
|
||||
exports.Logging = undefined;
|
||||
if (process.env.LOGGING_NO_DEFAULT !== "true") {
|
||||
exports.Logging = new LoggingBase();
|
||||
}
|
||||
exports.default = exports.Logging;
|
||||
function fsUnlink(path) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user