Skip to content

Instantly share code, notes, and snippets.

@imanabu
Last active September 25, 2023 02:51
Show Gist options
  • Select an option

  • Save imanabu/e5e1d31585db45e512b0 to your computer and use it in GitHub Desktop.

Select an option

Save imanabu/e5e1d31585db45e512b0 to your computer and use it in GitHub Desktop.

Revisions

  1. Manabu Tokunaga renamed this gist Feb 14, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Manabu Tokunaga revised this gist Dec 21, 2014. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions app.config
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,4 @@
    <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
    <section name="ModalityWorklistService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
    </configSections>
    <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. Manabu Tokunaga created this gist Dec 21, 2014.
    24 changes: 24 additions & 0 deletions app.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
    <section name="ModalityWorklistService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
    </configSections>
    <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
    <target name="console" xsi:type="Console" layout="${longdate} ${callsite} ${level} ${message}"/>
    <target name="logfile" xsi:type="File" fileName="C:\temp\log.txt" layout="${longdate} ${callsite} ${level} ${message}"/>
    <target name="rotatelog" xsi:type="File"
    layout="${longdate} ${logger} ${message}"
    fileName="c:/temp/logs/alogfile.txt"
    archiveFileName="c:/temp/logs/log.{#}.txt"
    archiveEvery="Day"
    archiveNumbering="Rolling"
    maxArchiveFiles="7"
    concurrentWrites="true" />
    </targets>
    <rules>
    <logger name="*" minLevel="Debug" writeTo="rotatelog"/>
    <logger name="*" minLevel="Debug" writeTo="console"/>
    </rules>
    </nlog>