Skip to content

Commit

Permalink
fix Logging sample
Browse files Browse the repository at this point in the history
  • Loading branch information
hanachiru committed Jun 8, 2024
1 parent 07e27ae commit 369b702
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,10 @@ class MyService
var builder = CoconaApp.CreateBuilder();
builder.Logging.AddDebug();

app.AddCommand((ILogger<Program> logger) => logger.LogInformation("Hello Konnichiwa!")));

var app = builder.Build();

app.AddCommand((ILogger<Program> logger) => logger.LogInformation("Hello Konnichiwa!"));

app.Run();
```

Expand Down

0 comments on commit 369b702

Please sign in to comment.