Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc authored Jul 5, 2024
1 parent 904ae90 commit 22208f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ The ZLog* method uses [InterpolatedStringHandler](https://learn.microsoft.com/en

Some special custom formats are also supported. The `:@` can be used when you want to explicitly give the structured log a name other than the name of the variable to capture. `:json` can be used to log the result of JsonSerializing an object.

The `@` parameter name specification and format string can be used together.

```csharp
// Today is 2023-12-19.
// {"date":"2023-12-19T11:25:34.3642389+09:00"}
logger.ZLogDebug($"Today is {DateTime.Now:@date:yyyy-MM-dd}.");
```

Logging Providers
---
By adding Providers, you can configure where the logs are output. ZLogger has the following providers.
Expand Down

0 comments on commit 22208f6

Please sign in to comment.