> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.Logging

> The standard NetServer logger.

This is the **standard NetServer logger**. It lives in *SuperOffice.Logging.dll*. It reads configuration from the NetServer *web.config* file's [Diagnostics section][2]

Like all logging, it is subject to filtering according to the NetServer `Diagnostics` settings.

```xml theme={null}
<Diagnostics>
  <add key="LogError" value="true">
  <add key="LogWarning" value="true">
  <add key="LogWarningFrom" value="SoCommand,SoDataReader,SuperOffice.CRM.Webhooks">
  <add key="LogInformation" value="true">
  <add key="LogInformationFrom" value="SoCommand,SoDataReader,SuperOffice.CRM.Webhooks">
  <add key="LogDebug" value="false">
  <add key="LogDebugFrom" value="SoCommand,SoDataReader,SuperOffice.CRM.Webhooks">
  <add key="LogTrace" value="false">
  <add key="LogTraceFrom" value="SoCommand,SoDataReader,SuperOffice.CRM.Webhooks">
  <add key="LogToFile" value="true">
  <add key="LogFolder" value="C:\logs">
</Diagnostics>
```

The above section will:

* Write logs to the file *C:\logs\2021-05-07.log*.
* Write to a log file with today's date in the *LogFolder*.
* Create the *LogFolder* if it does not exist.
* Write to the log file using DocumentArchive impersonation (if configured).

<Note>
  SuperOffice.Logging will do nothing if the `Diagnostics/LogToFile` value is false.
</Note>

## Files to deploy

Remove the following if you don't want logging to file:

* SuperOffice.Logging.dll

[2]: ../config/diagnostics


## Related topics

- [Logging in NetServer](/en/onsite/logging/index.md)
- [SuperOffice.WebApi.Data.Logging](/en/api/reference/webapi/SuperOffice.WebApi.Data.Logging.md)
- [SuperOffice.Serilog](/en/onsite/logging/serilog.md)
- [SuperOffice.ini](/en/onsite/install/win-client/superoffice-ini.md)
- [SuperOffice Inbox](/en/email/inbox/it/index.md)
- [SuperOffice.config](/en/onsite/install/win-client/superoffice-config.md)
