From 369b70216d85af1d7d1844df76045541c224d42f Mon Sep 17 00:00:00 2001 From: hanachiru Date: Sat, 8 Jun 2024 20:15:23 +0900 Subject: [PATCH] fix Logging sample --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d52a7d..4891e29 100644 --- a/README.md +++ b/README.md @@ -892,9 +892,10 @@ class MyService var builder = CoconaApp.CreateBuilder(); builder.Logging.AddDebug(); -app.AddCommand((ILogger logger) => logger.LogInformation("Hello Konnichiwa!"))); - var app = builder.Build(); + +app.AddCommand((ILogger logger) => logger.LogInformation("Hello Konnichiwa!")); + app.Run(); ```