Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Dec 4, 2023
1 parent 016776e commit c72544a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sandbox/ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ public void Foo(string name, string city, int age)
// {"Timestamp":"2023-11-30T17:28:35.869211+09:00","LogLevel":"Information","Category":"MyClass","Message":"Hello, Bill id:100 21 years old.","username":"Bill","id":100,"age":21}

// Dump variables as JSON
User[] users =
[
new User(1, "Alice"),
new User(1, "Bob"),
];
logger.ZLogInformation($"users: {users:json}");
//var user =
//[
// new User(1, "Alice"),
// new User(1, "Bob"),
//];
//logger.ZLogInformation($"users: {users:json}");

// plain-text:
// users: [{"Id":1,"Name":"Alice"},{"Id":1,"Name":"Bob"}]
Expand Down

0 comments on commit c72544a

Please sign in to comment.