Skip to content

Commit 89f5871

Browse files
Create logging.md (#205)
* Create logging.md * Update logging.md --------- Co-authored-by: Todor Arabadzhiev <[email protected]>
1 parent 2633e79 commit 89f5871

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

dotnet-docs/logging.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Logging in the Report Server for .NET
3+
page_title: Enabling logging in the Report Server for .NET
4+
description: "Learn how to enable SeriLog logging in the Telerik Report Server for .NET application and service."
5+
slug: logging-rs-net
6+
tags: SeriLog,Logging,Troubleshooting,Error,RS.NET
7+
published: True
8+
position: 302
9+
---
10+
11+
# Overview
12+
13+
The Report Server for .NET uses [Serilog](https://serilog.net/) to allow writing diagnostic logging information from the server onto a file for easier troubleshooting.
14+
15+
## Setup
16+
17+
The configuration options for Serilog that would usually be set up through the C# API - [Serilog Configuration Basics](https://github.com/serilog/serilog/wiki/Configuration-Basics), can instead be
18+
defined in the `appsettings.json` configuration files of the Report Server for .NET.
19+
20+
### Report Server Manager
21+
22+
The `appsettings.json` file of the Report Server Manager for .NET resides in its installation directory, for example, `C:\Program Files (x86)\Progress\Telerik Report Server\Telerik.ReportServer.Web.NET\`.
23+
The following configuration settings can be added to that file, at the top level:
24+
25+
````JSON
26+
"Serilog": {
27+
"MinimumLevel": "Verbose",
28+
"WriteTo": [
29+
{
30+
"Name": "Console"
31+
},
32+
{
33+
"Name": "File",
34+
"Args": { "path": "Logs/logServerManagerAll.txt" }
35+
}
36+
]
37+
}
38+
````
39+
40+
### Service Agent
41+
42+
The Report Server for .NET ServiceAgent's `appsettings.json` file can be found in its installation directory, by default - `C:\Program Files (x86)\Progress\Telerik Report Server\Services\.NET\`.
43+
The following configuration settings can be added to that file, at the top level:
44+
45+
````JSON
46+
"Serilog": {
47+
"MinimumLevel": "Verbose",
48+
"WriteTo": [
49+
{
50+
"Name": "Console"
51+
},
52+
{
53+
"Name": "File",
54+
"Args": { "path": "Logs/logServiceAgentAll.txt" }
55+
}
56+
]
57+
}
58+
````
59+
60+
> For more configuration settings, refer to [Serilog Configuration Basics](https://github.com/serilog/serilog/wiki/Configuration-Basics).
61+
62+
## See Also
63+
64+
* [Report Server for .NET Introduction]({%slug coming-soon%})
65+
* [Report Server for .NET: Installation on Windows]({%slug dotnet-installation-on-windows%})
66+
* [Report Server for .NET: Installation on Docker Container]({%slug dotnet-installation-on-docker-container%})

0 commit comments

Comments
 (0)