You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet-docs/logging.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,31 @@ The Report Server for .NET uses [Serilog](https://serilog.net/) to allow writin
14
14
15
15
## Setup
16
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.
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 be configured in two ways:
19
18
20
-
### Report Server Manager
19
+
1.[Environment Variables](#using-environment-variables) - Set system-wide environment variables.
20
+
2.[Configuration Files](#using-configuration-files) - Modify the `appsettings.json` files directly.
21
+
22
+
### Using Environment Variables
23
+
24
+
You can enable logging for both the Report Server Manager and Service Agent at the same time by setting the following environment variables:
This requires the default Serilog configuration to exist in the `appsettings.json` files for both the manager and service components, as environment variables are intended to override these base settings as needed.
33
+
34
+
>note When the Report Server is installed using the MSI installer, it runs under a dedicated Windows user account (ReportServerUser) or a system account (e.g., LocalSystem) depending on your installation choice. These accounts do not have access to user-level environment variables.
35
+
> To ensure environment variable overrides work correctly, you must define them at the **system level**.
36
+
37
+
### Using Configuration Files
38
+
39
+
Alternatively, you can define the configuration in the `appsettings.json` configuration files of the Report Server for .NET.
40
+
41
+
#### Report Server Manager
21
42
22
43
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
44
The following configuration settings can be added to that file, at the top level:
@@ -37,7 +58,7 @@ The following configuration settings can be added to that file, at the top level
37
58
}
38
59
````
39
60
40
-
### Service Agent
61
+
####Service Agent
41
62
42
63
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
64
The following configuration settings can be added to that file, at the top level:
0 commit comments