# Edge Logging

The Senseforce Edge Solution integrates a powerful logging framework.&#x20;

Each plugin as well as the core application itself provides separate log files to keep the logging experience clean and simple. All plugin configurations as well as the core appsettings.xml implement a setting "LogLevel" which allows setting how much information is written to the log files. Supported levels are:

| Log level   | Logging depth                                                                                                                                          |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Trace       | All available log messages are written. Use this setting for troubleshooting. Each individual read and transmitted data message is logged.             |
| Debug       | Debug log level. Use this setting, if you don't need detailed troubleshooting but want to have more information about what's going on inside the Edge. |
| Information | Informational content like startup and shutdown information is logged. This setting is suggested for most applications.                                |
| Warning     | Error and warning messages are written to the log file                                                                                                 |
| Error       | Only critical messages are written to the log file                                                                                                     |

### Change amount of Log Files

It is also possible to set the amount of log files. Per default Luna saves 10 log files per module and for the coreapplication, before the first logfile will be overwritten. If you want to change the amount of log files, you can set a new number like below (line 6).&#x20;

```
  <Logger>
    <FilePath>$(LunaAppDataPath)Logs</FilePath>
    <FileName>agent.log</FileName>
    <!--LogLevel: Debug,Information,Warning,Error,Critical,None-->
    <LogLevel>Trace</LogLevel>
    <FileCountLimit>17</FileCountLimit>
  </Logger>
```

{% hint style="info" %}
A new log file is written for each day. A total of 100 MB per log file as well as an overall total of 1 GB of log files for each plugin as well as for the core application are kept. In case these limits are met, the oldest log files are deleted.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.senseforce.io/manual/senseforce-edge/edge-configuration/edge-logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
