We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1e6499 + e810384 commit f1cdcd7Copy full SHA for f1cdcd7
README.md
@@ -285,11 +285,13 @@ The Azure Diagnostic Log Stream ships events from any files in the `D:\home\LogF
285
.WriteTo.Console()
286
// Add this line:
287
.WriteTo.File(
288
- @"D:\home\LogFiles\Application\myapp.txt",
289
- fileSizeLimitBytes: 1_000_000,
290
- rollOnFileSizeLimit: true,
291
- shared: true,
292
- flushToDiskInterval: TimeSpan.FromSeconds(1))
+ System.IO.Path.Combine(Environment.GetEnvironmentVariable("HOME"), "LogFiles", "Application", "diagnostics.txt"),
+ rollingInterval: RollingInterval.Day,
+ fileSizeLimitBytes: 10 * 1024 * 1024,
+ retainedFileCountLimit: 2,
+ rollOnFileSizeLimit: true,
293
+ shared: true,
294
+ flushToDiskInterval: TimeSpan.FromSeconds(1))
295
.CreateLogger();
296
```
297
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments