We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8603621 commit 91910bfCopy full SHA for 91910bf
samples/Exceptionless.SampleConsole/Program.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Diagnostics;
3
using System.IO;
4
using System.Threading;
@@ -60,12 +60,12 @@ public static async Task Main(string[] args) {
60
LogManager.Configuration = config;
61
62
var logger = LogManager.GetCurrentClassLogger();
63
- logger.Warn()
+ logger.ForWarnEvent()
64
.Message("App Starting...")
65
.Tag("Tag1", "Tag2")
66
.Property("LocalProp", "LocalValue")
67
.Property("Order", new { Total = 15 })
68
- .Write();
+ .Log();
69
70
// This is how you could log the same message using the fluent api directly.
71
//ExceptionlessClient.Default.CreateLog(typeof(Program).Name, "App Starting...", LogLevel.Info)
0 commit comments