Skip to content

Commit

Permalink
Merge pull request #146 from hanachiru/feature/fix-logging-sample
Browse files Browse the repository at this point in the history
Readme: fix logging sample
  • Loading branch information
mayuki authored Jun 23, 2024
2 parents 337647f + 369b702 commit bd7082f
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 bd7082f

Please sign in to comment.