public static void Main() { Log.Logger = Initializer.CreateLoggerConfiguration().CreateLogger(); Log.Debug("Getting started"); Log.Information("Hello {Name} from thread {ThreadId}", Environment.GetEnvironmentVariable("USERNAME"), Thread.CurrentThread.ManagedThreadId); Log.Warning("No coins remain at position {@Position}", new { Lat = 25, Long = 134 }); Log.CloseAndFlush(); }