Skip to content

Commit 91910bf

Browse files
committed
Fixed NLog Sample warnings
1 parent 8603621 commit 91910bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/Exceptionless.SampleConsole/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using System.IO;
44
using System.Threading;
@@ -60,12 +60,12 @@ public static async Task Main(string[] args) {
6060
LogManager.Configuration = config;
6161

6262
var logger = LogManager.GetCurrentClassLogger();
63-
logger.Warn()
63+
logger.ForWarnEvent()
6464
.Message("App Starting...")
6565
.Tag("Tag1", "Tag2")
6666
.Property("LocalProp", "LocalValue")
6767
.Property("Order", new { Total = 15 })
68-
.Write();
68+
.Log();
6969

7070
// This is how you could log the same message using the fluent api directly.
7171
//ExceptionlessClient.Default.CreateLog(typeof(Program).Name, "App Starting...", LogLevel.Info)

0 commit comments

Comments
 (0)