Skip to content

Commit a2e19b3

Browse files
committed
Use SimpleConsoleLogger
1 parent 2313722 commit a2e19b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/MagicOnion.Generator/Program.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ public class Program : ConsoleAppBase
1010
{
1111
static async Task Main(string[] args)
1212
{
13-
await Host.CreateDefaultBuilder().RunConsoleAppFrameworkAsync<Program>(args).ConfigureAwait(false);
13+
await Host.CreateDefaultBuilder()
14+
.ConfigureLogging(logging =>
15+
{
16+
logging.ReplaceToSimpleConsole();
17+
})
18+
.RunConsoleAppFrameworkAsync<Program>(args)
19+
.ConfigureAwait(false);
1420
}
1521

1622
public async Task RunAsync(

0 commit comments

Comments
 (0)