Created
September 2, 2013 13:01
-
-
Save kjellski/6412608 to your computer and use it in GitHub Desktop.
web.config referencing Logging config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /> | |
</configSections> | |
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="General"> | |
<listeners> | |
<add name="Event Log Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
source="Enterprise Library Logging" formatter="Complete Text Formatter" | |
log="" machineName="." traceOutputOptions="None" /> | |
<add name="Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
fileName="logs/trace.log" header="" footer="" formatter="Complete Text Formatter" /> | |
<add name="Remotelabs Information Rolling File Trace Listener" | |
type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
fileName="logs/remotelabs_information.log" footer="" formatter="Complete Text Formatter" | |
header="" rollFileExistsBehavior="Increment" rollInterval="Year" /> | |
<add name="Remotelabs Error Rolling Flat File Trace Listener" | |
type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
fileName="logs/remotelabs_error.log" footer="" formatter="Complete Text Formatter" | |
header="" rollFileExistsBehavior="Increment" rollInterval="Year" /> | |
<add name="Remotelabs Week Complete Log Rolling Flat File Trace Listener" | |
type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
fileName="logs/remotelabs_complete.log" footer="" formatter="Complete Text Formatter" | |
header="" rollFileExistsBehavior="Increment" rollInterval="Week" | |
traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, Callstack" /> | |
<add name="Remotelabs Warning Rolling Flat File Trace Listener" | |
type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
fileName="logs/remotelabs_warning.log" footer="" formatter="Complete Text Formatter" | |
header="" rollFileExistsBehavior="Increment" rollInterval="Week" /> | |
</listeners> | |
<formatters> | |
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
template="Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {localMachine}
App Domain: {localAppDomain}
ProcessId: {localProcessId}
Process Name: {localProcessName}
Thread Name: {threadName}
Win32 ThreadId:{win32ThreadId}
Extended Properties: {dictionary({key} - {value})}" | |
name="Text Formatter" /> | |
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
template="{timestamp(FixedFormatISOInternationalDate)} {timestamp(FixedFormatTime)} {severity}{tab}[{eventid}] "{title}" {message}" | |
name="Complete Text Formatter" /> | |
</formatters> | |
<categorySources> | |
<add switchValue="All" name="General"> | |
<listeners> | |
<add name="Remotelabs Week Complete Log Rolling Flat File Trace Listener" /> | |
</listeners> | |
</add> | |
<add switchValue="ActivityTracing" name="Trace"> | |
<listeners> | |
<add name="Flat File Trace Listener" /> | |
</listeners> | |
</add> | |
<add switchValue="All" name="RemotelabsInformationLog"> | |
<listeners> | |
<add name="Remotelabs Information Rolling File Trace Listener" /> | |
<add name="Remotelabs Week Complete Log Rolling Flat File Trace Listener" /> | |
</listeners> | |
</add> | |
<add switchValue="All" name="RemotelabsErrorLog"> | |
<listeners> | |
<add name="Remotelabs Error Rolling Flat File Trace Listener" /> | |
<add name="Remotelabs Week Complete Log Rolling Flat File Trace Listener" /> | |
</listeners> | |
</add> | |
<add switchValue="All" name="RemotelabsWarningLog"> | |
<listeners> | |
<add name="Remotelabs Week Complete Log Rolling Flat File Trace Listener" /> | |
<add name="Remotelabs Warning Rolling Flat File Trace Listener" /> | |
</listeners> | |
</add> | |
</categorySources> | |
<specialSources> | |
<allEvents switchValue="All" name="All Events" /> | |
<notProcessed switchValue="All" name="Unprocessed Category" /> | |
<errors switchValue="All" name="Logging Errors & Warnings"> | |
<listeners> | |
<add name="Event Log Listener" /> | |
</listeners> | |
</errors> | |
</specialSources> | |
</loggingConfiguration> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<configSections> | |
<section name="loggingConfiguration" configSource="RLUtils.Logging.config"/> | |
... | |
</configSections> | |
... | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be: