-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs on audited members and more loggingt
- Loading branch information
Jeremy D. Miller
authored and
Jeremy D. Miller
committed
Mar 7, 2023
1 parent
d41474f
commit 90e0e4c
Showing
3 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
using Wolverine; | ||
|
||
namespace DocumentationSamples; | ||
|
||
public class LoggingUsage | ||
{ | ||
public static async Task show_entry_logging() | ||
{ | ||
#region sample_log_message_starting | ||
|
||
using var host = await Host.CreateDefaultBuilder() | ||
.UseWolverine(opts => | ||
{ | ||
// Opt into having Wolverine add a log message at the beginning | ||
// of the message execution | ||
opts.Policies.LogMessageStarting(LogLevel.Information); | ||
}).StartAsync(); | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters