@@ -32,10 +32,10 @@ static void TextFormattingExample1()
3232 . CreateLogger ( ) ;
3333
3434 log . Information ( "Running {Example}" , nameof ( TextFormattingExample1 ) ) ;
35-
35+
3636 log . ForContext < Program > ( )
3737 . Information ( "Cart contains {@Items}" , new [ ] { "Tea" , "Coffee" } ) ;
38-
38+
3939 log . ForContext < Program > ( )
4040 . Information ( "Cart contains {@Items}" , new [ ] { "Apricots" } ) ;
4141 }
@@ -49,10 +49,10 @@ static void JsonFormattingExample()
4949 . CreateLogger ( ) ;
5050
5151 log . Information ( "Running {Example}" , nameof ( JsonFormattingExample ) ) ;
52-
52+
5353 log . ForContext < Program > ( )
5454 . Information ( "Cart contains {@Items}" , new [ ] { "Tea" , "Coffee" } ) ;
55-
55+
5656 log . ForContext < Program > ( )
5757 . Warning ( "Cart is empty" ) ;
5858 }
@@ -67,20 +67,20 @@ static void PipelineComponentExample()
6767 . WriteTo . Console ( outputTemplate :
6868 "[{Timestamp:HH:mm:ss} {Level:u3} ({SourceContext})] {Message:lj} (first item is {FirstItem}){NewLine}{Exception}" )
6969 . CreateLogger ( ) ;
70-
70+
7171 log . Information ( "Running {Example}" , nameof ( PipelineComponentExample ) ) ;
72-
72+
7373 log . ForContext < Program > ( )
7474 . Information ( "Cart contains {@Items}" , new [ ] { "Tea" , "Coffee" } ) ;
75-
75+
7676 log . ForContext < Program > ( )
7777 . Information ( "Cart contains {@Items}" , new [ ] { "Apricots" } ) ;
7878 }
79-
79+
8080 static void TextFormattingExample2 ( )
8181 {
8282 // Emulates `Microsoft.Extensions.Logging`'s `ConsoleLogger`.
83-
83+
8484 var melon = new TemplateTheme ( TemplateTheme . Literate , new Dictionary < TemplateThemeStyle , string >
8585 {
8686 // `Information` is dark green in MEL.
@@ -102,11 +102,11 @@ static void TextFormattingExample2()
102102
103103 var program = log . ForContext < Program > ( ) ;
104104 program . Information ( "Host listening at {ListenUri}" , "https://hello-world.local" ) ;
105-
105+
106106 program
107107 . ForContext ( "Scope" , new [ ] { "Main" , "TextFormattingExample2()" } )
108108 . Information ( "HTTP {Method} {Path} responded {StatusCode} in {Elapsed:0.000} ms" , "GET" , "/api/hello" , 200 , 1.23 ) ;
109-
109+
110110 program . Warning ( "We've reached the end of the line" ) ;
111111 }
112112 }
0 commit comments