Code
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
3
4 <configSections>
5 <!--Quartz.Net配置节-->
6 <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
7
8 <!--CommonLogging配置节-->
9 <sectionGroup name="common">
10 <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
11 </sectionGroup>
12
13 <!--NLog配置节-->
14 <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
15 </configSections>
16
17 <!--CommonLogging配置节-->
18 <common>
19 <logging>
20 <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog">
21 <arg key="configType" value="INLINE" />
22 </factoryAdapter>
23 </logging>
24 </common>
25
26 <!--NLog配置节-->
27 <nlog>
28 <targets>
29 <target name="logFile" type="File" fileName="${basedir}/Log/${shortdate}/${logger}_${level}.txt" layout="${longdate}|${level:uppercase=true}|${logger}${newline}${message}${newline}"/>
30 </targets>
31 <rules>
32 <logger name="*" minlevel="Debug" writeTo="logFile"/>
33 </rules>
34 </nlog>
35
36 <!--Quartz.Net配置节-->
37 <quartz>
38 <add key="quartz.plugin.jobhistory.type" value = "Quartz.Plugin.History.LoggingJobHistoryPlugin"/>
39 <add key="quartz.plugin.triggerhistory.type" value ="Quartz.Plugin.History.LoggingTriggerHistoryPlugin"/>
40 <add key="quartz.scheduler.instanceName" value="FetionJobServer"/>
41 <add key="quartz.scheduler.instanceId" value="AUTO"/>
42 <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz"/>
43 <add key="quartz.threadPool.threadCount" value="5"/>
44 <add key="quartz.threadPool.threadPriority" value="Normal"/>
45 <add key="quartz.jobStore.misfireThreshold" value="60000"/>
46 <add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz"/>
47 <add key="quartz.jobStore.useProperties" value="true"/>
48 <add key="quartz.jobStore.dataSource" value="default"/>
49 <add key="quartz.jobStore.tablePrefix" value="QRTZ_"/>
50 <add key="quartz.jobStore.clustered" value="true"/>
51 <add key="quartz.jobStore.lockHandler.type" value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz"/>
52 <add key="quartz.dataSource.default.connectionString" value="Server=192.168.120.234;Database=FetionJobServer;User Id=AppUser;Password=P@ssw0rd;"/>
53 <add key="quartz.dataSource.default.provider" value="SqlServer-20"/>
54 <add key="quartz.scheduler.exporter.type" value="Quartz.Simpl.RemotingSchedulerExporter, Quartz"/>
55 <add key="quartz.scheduler.exporter.port" value="54322"/>
56 <add key="quartz.scheduler.exporter.bindName" value="FetionJobServer"/>
57 <add key="quartz.scheduler.exporter.channelType" value="tcp"/>
58 </quartz>
59
60 </configuration>
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
3
4 <configSections>
5 <!--Quartz.Net配置节-->
6 <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
7
8 <!--CommonLogging配置节-->
9 <sectionGroup name="common">
10 <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
11 </sectionGroup>
12
13 <!--NLog配置节-->
14 <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
15 </configSections>
16
17 <!--CommonLogging配置节-->
18 <common>
19 <logging>
20 <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog">
21 <arg key="configType" value="INLINE" />
22 </factoryAdapter>
23 </logging>
24 </common>
25
26 <!--NLog配置节-->
27 <nlog>
28 <targets>
29 <target name="logFile" type="File" fileName="${basedir}/Log/${shortdate}/${logger}_${level}.txt" layout="${longdate}|${level:uppercase=true}|${logger}${newline}${message}${newline}"/>
30 </targets>
31 <rules>
32 <logger name="*" minlevel="Debug" writeTo="logFile"/>
33 </rules>
34 </nlog>
35
36 <!--Quartz.Net配置节-->
37 <quartz>
38 <add key="quartz.plugin.jobhistory.type" value = "Quartz.Plugin.History.LoggingJobHistoryPlugin"/>
39 <add key="quartz.plugin.triggerhistory.type" value ="Quartz.Plugin.History.LoggingTriggerHistoryPlugin"/>
40 <add key="quartz.scheduler.instanceName" value="FetionJobServer"/>
41 <add key="quartz.scheduler.instanceId" value="AUTO"/>
42 <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz"/>
43 <add key="quartz.threadPool.threadCount" value="5"/>
44 <add key="quartz.threadPool.threadPriority" value="Normal"/>
45 <add key="quartz.jobStore.misfireThreshold" value="60000"/>
46 <add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz"/>
47 <add key="quartz.jobStore.useProperties" value="true"/>
48 <add key="quartz.jobStore.dataSource" value="default"/>
49 <add key="quartz.jobStore.tablePrefix" value="QRTZ_"/>
50 <add key="quartz.jobStore.clustered" value="true"/>
51 <add key="quartz.jobStore.lockHandler.type" value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz"/>
52 <add key="quartz.dataSource.default.connectionString" value="Server=192.168.120.234;Database=FetionJobServer;User Id=AppUser;Password=P@ssw0rd;"/>
53 <add key="quartz.dataSource.default.provider" value="SqlServer-20"/>
54 <add key="quartz.scheduler.exporter.type" value="Quartz.Simpl.RemotingSchedulerExporter, Quartz"/>
55 <add key="quartz.scheduler.exporter.port" value="54322"/>
56 <add key="quartz.scheduler.exporter.bindName" value="FetionJobServer"/>
57 <add key="quartz.scheduler.exporter.channelType" value="tcp"/>
58 </quartz>
59
60 </configuration>