Skip to content

Commit faa01bb

Browse files
committed
Updated sample to send random log levels
1 parent c4644af commit faa01bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/Samples/SampleConsole/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ private static void SendContinuousEvents(int delay, CancellationToken token, int
234234
if (token.IsCancellationRequested)
235235
break;
236236

237+
if (ev != null && ev.IsLog())
238+
ev.SetProperty(Event.KnownDataKeys.Level, RandomData.GetEnum<LogLevel>().Name);
239+
237240
SendEvent(ev, false);
238241
eventCount++;
239242
lock (_writeLock) {

0 commit comments

Comments
 (0)