From: Jérôme Benoit Date: Sun, 28 May 2023 20:39:52 +0000 (+0200) Subject: refactor(simulator): export directly logger helper X-Git-Tag: v1.2.15~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1f5e5d03f67ccfb572045a644bff79119e77c45b;p=e-mobility-charging-stations-simulator.git refactor(simulator): export directly logger helper Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index 9bb195a3..e2b2da5a 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -38,7 +38,7 @@ if (Configuration.getLogRotate() === true) { ]; } -const logger: Logger = createLogger({ +export const logger: Logger = createLogger({ level: Configuration.getLogLevel(), format: format.combine(format.splat(), (format[Configuration.getLogFormat()] as FormatWrap)()), transports, @@ -58,5 +58,3 @@ if (Configuration.getLogConsole()) { }) ); } - -export { logger };