app.config 1.4 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <system.diagnostics>
  4. <sources>
  5. <!-- このセクションでは、My.Application.Log のログ構成を定義します。-->
  6. <source name="DefaultSource" switchName="DefaultSwitch">
  7. <listeners>
  8. <add name="FileLog"/>
  9. <!-- アプリケーション イベント ログに書き込むには、以下のセクションのコメントを解除します -->
  10. <!--<add name="EventLog"/>-->
  11. </listeners>
  12. </source>
  13. </sources>
  14. <switches>
  15. <add name="DefaultSwitch" value="Information"/>
  16. </switches>
  17. <sharedListeners>
  18. <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
  19. <!-- アプリケーション イベント ログに書き込むには、以下のセクションのコメントを解除して、APPLICATION_NAME をアプリケーション名に置き換えます -->
  20. <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
  21. </sharedListeners>
  22. </system.diagnostics>
  23. <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>