89 lines
4.8 KiB
Plaintext
89 lines
4.8 KiB
Plaintext
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
|
<configuration>
|
||
|
|
<configSections>
|
||
|
|
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
|
||
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||
|
|
</configSections>
|
||
|
|
<loggingConfiguration name="Logging Application Block" tracingEnabled="true"
|
||
|
|
defaultCategory="" logWarningsWhenNoCategoriesMatch="true">
|
||
|
|
<listeners>
|
||
|
|
<add fileName="u8api.log" header="----------------------------------------"
|
||
|
|
footer="----------------------------------------" formatter="Text Formatter"
|
||
|
|
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
|
||
|
|
traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
|
||
|
|
name="FlatFile TraceListener" />
|
||
|
|
</listeners>
|
||
|
|
<formatters>
|
||
|
|
<add template="Timestamp: [{timestamp(local)}]
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}"
|
||
|
|
type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"
|
||
|
|
name="Text Formatter" />
|
||
|
|
</formatters>
|
||
|
|
<categorySources>
|
||
|
|
<add switchValue="All" name="QuartzScheduler">
|
||
|
|
<listeners>
|
||
|
|
<add name="FlatFile TraceListener" />
|
||
|
|
</listeners>
|
||
|
|
</add>
|
||
|
|
</categorySources>
|
||
|
|
<specialSources>
|
||
|
|
<allEvents switchValue="All" name="All Events" />
|
||
|
|
<notProcessed switchValue="All" name="Unprocessed Category" />
|
||
|
|
<errors switchValue="All" name="Logging Errors & Warnings" />
|
||
|
|
</specialSources>
|
||
|
|
</loggingConfiguration>
|
||
|
|
<log4net>
|
||
|
|
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
|
||
|
|
<layout type="log4net.Layout.PatternLayout">
|
||
|
|
<param name="ConversionPattern" value="%d [%t](%F:%L) %-5p %c [%x] - %m%n" />
|
||
|
|
</layout>
|
||
|
|
</appender>
|
||
|
|
<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
|
||
|
|
<param name="File" value="Logs\u8api.log" />
|
||
|
|
<param name="AppendToFile" value="true" />
|
||
|
|
<layout type="log4net.Layout.PatternLayout">
|
||
|
|
<param name="ConversionPattern" value="%d [%t](%F:%L) %-5p %c [%x] - %m%n" />
|
||
|
|
</layout>
|
||
|
|
</appender>
|
||
|
|
<appender name="RollingInfoFileAppender" type="log4net.Appender.RollingFileAppender">
|
||
|
|
<param name="File" value="Logs\u8api.log" />
|
||
|
|
<param name="AppendToFile" value="true" />
|
||
|
|
<param name="RollingStyle" value="Size" />
|
||
|
|
<param name="MaxSizeRollBackups" value="10" />
|
||
|
|
<param name="MaximumFileSize" value="5MB" />
|
||
|
|
<param name="StaticLogFileName" value="true" />
|
||
|
|
<layout type="log4net.Layout.PatternLayout">
|
||
|
|
<param name="ConversionPattern" value="%d [%t] %-5p - %m%n" />
|
||
|
|
</layout>
|
||
|
|
</appender>
|
||
|
|
<appender name="RollingDebugFileAppender" type="log4net.Appender.RollingFileAppender">
|
||
|
|
<param name="File" value="Logs\u8api.log" />
|
||
|
|
<param name="AppendToFile" value="true" />
|
||
|
|
<param name="RollingStyle" value="Size" />
|
||
|
|
<param name="MaxSizeRollBackups" value="10" />
|
||
|
|
<param name="MaximumFileSize" value="5MB" />
|
||
|
|
<param name="StaticLogFileName" value="true" />
|
||
|
|
<layout type="log4net.Layout.PatternLayout">
|
||
|
|
<param name="ConversionPattern" value="%d [%t](%F:%L) %-5p %c [%x] - %m%n" />
|
||
|
|
</layout>
|
||
|
|
</appender>
|
||
|
|
<appender name="XMLRollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
||
|
|
<param name="File" value="Logs\u8api.log" />
|
||
|
|
<param name="Encoding" value="Unicode" />
|
||
|
|
<param name="AppendToFile" value="true" />
|
||
|
|
<param name="RollingStyle" value="Size" />
|
||
|
|
<param name="MaxSizeRollBackups" value="10" />
|
||
|
|
<param name="MaximumFileSize" value="5MB" />
|
||
|
|
<param name="StaticLogFileName" value="true" />
|
||
|
|
<layout type="log4net.Layout.XMLLayout">
|
||
|
|
<param name="Prefix" value=""/>
|
||
|
|
</layout>
|
||
|
|
</appender>
|
||
|
|
<root>
|
||
|
|
<level value="ALL" />
|
||
|
|
<appender-ref ref="RollingInfoFileAppender" />
|
||
|
|
</root>
|
||
|
|
<logger name="U8API">
|
||
|
|
<level value="DEBUG"/>
|
||
|
|
</logger>
|
||
|
|
</log4net>
|
||
|
|
</configuration>
|