mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-18 18:14:20 +01:00
Removed test logging in Program.cs
This commit is contained in:
parent
0eb939c755
commit
327ebde153
|
@ -7,17 +7,9 @@ using ILogger = Serilog.ILogger;
|
||||||
|
|
||||||
var serilogLogger = SetupSerilog();
|
var serilogLogger = SetupSerilog();
|
||||||
LogService.AddLogAdapter(new SerilogAdapter(serilogLogger));
|
LogService.AddLogAdapter(new SerilogAdapter(serilogLogger));
|
||||||
|
|
||||||
var logger = LogService.RegisterLogger(typeof(Program));
|
var logger = LogService.RegisterLogger(typeof(Program));
|
||||||
|
|
||||||
logger.Trace("Test TRACE log! {StringValue} {AnotherValue}", "WOW", "W0W");
|
Console.ReadKey(); // Hold console app open.
|
||||||
logger.Debug("Test DEBUG log! {IntVal}", 69);
|
|
||||||
logger.Information("Test INFO log! {DoubVal}", 4.20);
|
|
||||||
logger.Warning("Test WARNING log! {StrVal} {IntVAl} {StrChar}", "Over", 9000, '!');
|
|
||||||
logger.Error(new NullReferenceException("Test exception"),"Test ERROR log!");
|
|
||||||
logger.Fatal(new NullReferenceException("Test exception"),"Test FATAL log!");
|
|
||||||
|
|
||||||
Console.ReadKey();
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user