From 433c25a021c383e244c7d9a497455ca258fdf390 Mon Sep 17 00:00:00 2001 From: nojaf Date: Fri, 13 Sep 2024 15:57:38 +0200 Subject: [PATCH] Use the static logger --- src/Fantomas/Logging.fs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Fantomas/Logging.fs b/src/Fantomas/Logging.fs index c6ebda69a0..c5a4d53be9 100644 --- a/src/Fantomas/Logging.fs +++ b/src/Fantomas/Logging.fs @@ -20,15 +20,13 @@ let initLogger (level: VerbosityLevel) : VerbosityLevel = Log.Logger <- logger level -let logger = Log.Logger - /// log a message -let stdlog (s: string) = logger.Information(s) +let stdlog (s: string) = Log.Logger.Information(s) /// log an error -let elog (s: string) = logger.Error(s) +let elog (s: string) = Log.Logger.Error(s) /// log a message if the verbosity level is >= Detailed -let logGrEqDetailed s = logger.Debug(s) +let logGrEqDetailed s = Log.Logger.Debug(s) let closeAndFlushLog () = Log.CloseAndFlush()