<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
</startup>
<system.diagnostics>
<trace autoflush="true" indentsize="1">
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="%LOCALAPPDATA%\DBLog\application.log">
<filter type="System.Diagnostics.EventTypeFilter" initializeData="Verbose"/>
</add>
</listeners>
</trace>
</system.diagnostics>
</configuration>
How does I solve the problem with %LOCALAPPDATA% not working in my app.config, I need to able to configure inside a xml file. Not in the code if possible. It's the