From 26f09b102d4a4173859fdeca94af191e340de8bf Mon Sep 17 00:00:00 2001 From: Damiaan Date: Wed, 27 Jan 2021 10:54:05 +0100 Subject: [PATCH 1/2] pathFormat is not an existing parameter You need to use path, as this is a mandatory parameter. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa33ca7..e416af6 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ If the sink accepts parameters, these are specified by appending the parameter n In XML: ```xml - + ``` From 4d29a94dcc11f20dfb0fae0813c275d445551ae1 Mon Sep 17 00:00:00 2001 From: Damiaan Date: Sun, 31 Jan 2021 13:45:54 +0100 Subject: [PATCH 2/2] Replaced RolingFile by File --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e416af6..2c21b74 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,14 @@ Sink assemblies must be specified using the `serilog:using` syntax. For example, If the sink accepts parameters, these are specified by appending the parameter name to the setting. ```csharp - .WriteTo.RollingFile(@"C:\Logs\myapp-{Date}.txt", retainedFileCountLimit: 10) + .WriteTo.File(@"C:\Logs\myapp-{Date}.txt", retainedFileCountLimit: 10) ``` In XML: ```xml - - + + ``` Any environment variables specified in a setting value (e.g. `%TEMP%`) will be expanded appropriately when read.