common.logging 2.0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,107 @@
1
+ Common.Logging CHANGELOG
2
+ =====================================
3
+ http://netcommon.sf.net
4
+
5
+ Release 2.0.0, April 26 2009
6
+
7
+ Summary: New Features and Bug Fix release
8
+
9
+ IMPORTANT NOTE:
10
+ starting with version 2.0 we dropped support for .NET versions 1.0 and 1.1. - if you need support
11
+ for those platforms please download Common.Logging 1.2
12
+
13
+ Breaking Changes
14
+ *) LogManager.ConfigurationReader is readonly now -> use LogManager.Reset() instead
15
+
16
+ Feature Requests
17
+
18
+ [2485203] - Add support for EntLib 4.1 logging
19
+ [2512017] - Provide base classes for implementing custom factoryAdapters
20
+ [1810787] - Add source code to distribution
21
+ [1826632] - Make Common.Logging ClsCompliant
22
+ [1970386] - Support for Enterprise Library 4.0
23
+ [1852882] - Add optimize flag + PdbOnly in release build
24
+ [1847554] - Add TraceListener to capture Diagnostics.Trace calls
25
+ [1710163] - Add xxxFormat methods to Common.Logging.ILog interface
26
+ [2545123] - Add LogManager.GetCurrentClassLogger()
27
+ [1810785] - Clean up code comments
28
+
29
+ Bug Fixes
30
+
31
+ [1683776] - Implementations of ILog are not serializable
32
+ [1683773] - Add log4net 1.2.9 .dll to distribution for .NET 1.0
33
+ [1683772] - Null Pointer Exception when passing in null value for msg
34
+ [1683774] - Add unit tests for Common.Logging
35
+ [1846258] - ConfigurationSectionHandler not case-insensitive in NET 2.0
36
+
37
+ Release 1.2.0, October 10 2007
38
+
39
+ Summary: New Features and Bug Fix release
40
+
41
+ Feature Requests
42
+
43
+ [1749338] - Only make .NET 1.0 build since nothing 1.1/2.0 specific
44
+ [1749340] - Add support for EntLib logging
45
+ [1807769] - Add Trace level method to ILog interface
46
+
47
+ Bug
48
+
49
+ [1792900] - NLog logging is not performed relative to correct callsite
50
+
51
+ Release 1.1.0, July 10 2007
52
+
53
+ Summary: New Features and Bug Fix release
54
+
55
+ Feature Requests
56
+
57
+ [1749332] - Add additonal unit tests
58
+ [1715338] - Add error reporting when can't load Factory Adapter
59
+ [1749329] - Add support for NLog
60
+
61
+ Bug
62
+
63
+ [1718812] - Simple adapters fail to initialize if no arguments are specifed in XML configuration.
64
+
65
+
66
+ Release 1.0.2, March 15 2007
67
+
68
+ Summary: Bug Fix Release
69
+
70
+ Bug
71
+
72
+ [CIL-4] - Implementations of ILog are now serializable
73
+
74
+ ---------------------------
75
+
76
+ Release 1.0.1, March 1 2007
77
+
78
+ Summary: Bug Fix Release
79
+
80
+ Bug
81
+
82
+ [CIL-1] - Null Pointer Exception when passing in null value for message.
83
+ [CIL-2] - Add log4net 1.2.9 .dll to distribution for .NET 1.0
84
+
85
+ Improvement
86
+ [CIL-3] - Add simple NUnit test for Common.Logging
87
+
88
+ ---------------------------
89
+
90
+ Release 1.0.0, February 27 2007
91
+
92
+ Summary: Initial Release
93
+
94
+ Release Notes
95
+
96
+ Contains support for log4net 1.2.10 and 1.2.9
97
+
98
+ Bug
99
+
100
+ Improvement
101
+
102
+
103
+ New Feature
104
+
105
+ Task
106
+
107
+
@@ -0,0 +1,66 @@
1
+ Common.Logging 2.0 (April 26 2009)
2
+ ---------------------------------------------------------
3
+ http://netcommon.sf.net/
4
+
5
+
6
+ 1. INTRODUCTION
7
+
8
+ Provides a simple logging abstraction to switch between different logging implementations.
9
+ There is current support for log4net (1.2.10 and 1.2.9), NLog, Enterprise Library logging 3.1
10
+ and Enterprise Library logging 4.1.
11
+ Additionally Common.Logging comes with a set of base classes making integration of any log
12
+ system a breeze.
13
+
14
+ 2. KNOWN ISSUES
15
+
16
+ No known issues
17
+
18
+ 3. RELEASE INFO
19
+
20
+ Release contents:
21
+
22
+ * "bin" contains the Common.Logging distribution dll files
23
+ * "doc" contains reference documentation.
24
+ * "shared" contains shared nant build scripts
25
+ * "modules" contains the sourcecode for Common.Logging.XXXX modules
26
+ * "redist" contains redistributable assemblies like log4net for your convenience
27
+
28
+ The Common Infrastructure Libraries for .NET are released under the terms of the Apache Software License (see license.txt).
29
+
30
+
31
+ 4. BUILDING
32
+
33
+ For building Common.Logging library, you need to have NAnt, Enterprise Library 3.1 and Enterprise Library 4.1 installed.
34
+ From the commandline execute
35
+
36
+ c:\netcommon>nant build
37
+
38
+
39
+ 5. CONFIGURING
40
+
41
+ in your app.config or web.config add the lines
42
+
43
+ <?xml version="1.0" encoding="utf-8" ?>
44
+ <configuration>
45
+
46
+ <configSections>
47
+ <sectionGroup name="common">
48
+ <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
49
+ </sectionGroup>
50
+ </configSections>
51
+
52
+ <common>
53
+ <logging>
54
+ <factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
55
+ <arg key="level" value="ALL" />
56
+ </factoryAdapter>
57
+ </logging>
58
+ </common>
59
+
60
+ ...
61
+
62
+ </configuration>
63
+
64
+
65
+ see module documentations for available factoryAdapters and their configuration values
66
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,437 @@
1
+ <?xml version="1.0"?>
2
+ <doc>
3
+ <assembly>
4
+ <name>Common.Logging.EntLib</name>
5
+ </assembly>
6
+ <members>
7
+ <member name="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener">
8
+ <summary>
9
+ Use this <see cref="T:System.Diagnostics.TraceListener"/> implementation to route all Entlib logging events to the
10
+ Common.Logging infrastructure.
11
+ </summary>
12
+ <remarks>
13
+ See <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData"/> for a list of properties to configure.
14
+ </remarks>
15
+ <example>
16
+ To route all <see cref="T:Microsoft.Practices.EnterpriseLibrary.Logging.Logger"/> events to Common.Logging, configure <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/>:
17
+ <code lang="XML">
18
+ &lt;?xml version="1.0" encoding="utf-8"?&gt;
19
+ &lt;configuration&gt;
20
+ &lt;configSections&gt;
21
+ &lt;section name="loggingConfiguration"
22
+ type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings,
23
+ Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral,
24
+ PublicKeyToken=b03f5f7f11d50a3a" /&gt;
25
+ &lt;/configSections&gt;
26
+ &lt;loggingConfiguration name="Logging Application Block" tracingEnabled="true"
27
+ defaultCategory="General" logWarningsWhenNoCategoriesMatch="true"&gt;
28
+ &lt;listeners&gt;
29
+ &lt;add name="Common.Logging Listener"
30
+ type="Common.Logging.EntLib.CommonLoggingEntlibTraceListener, Common.Logging.EntLib"
31
+ listenerDataType="Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData,
32
+ Common.Logging.EntLib"
33
+ loggerNameFormat="{listenerName}.{sourceName}"
34
+ formatter="Text Formatter"
35
+ /&gt;
36
+ &lt;/listeners&gt;
37
+ &lt;formatters&gt;
38
+ &lt;add template="Timestamp: {timestamp}&amp;#xD;&amp;#xA;Message: {message}&amp;#xD;&amp;#xA;Category:
39
+ {category}&amp;#xD;&amp;#xA;Priority: {priority}&amp;#xD;&amp;#xA;EventId: {eventid}&amp;#xD;&amp;#xA;Severity:
40
+ {severity}&amp;#xD;&amp;#xA;Title:{title}&amp;#xD;&amp;#xA;Machine: {machine}&amp;#xD;&amp;#xA;Application Domain:
41
+ {appDomain}&amp;#xD;&amp;#xA;Process Id: {processId}&amp;#xD;&amp;#xA;Process Name: {processName}&amp;#xD;&amp;#xA;Win32
42
+ Thread Id: {win32ThreadId}&amp;#xD;&amp;#xA;Thread Name: {threadName}&amp;#xD;&amp;#xA;Extended Properties:
43
+ {dictionary({key} - {value}&amp;#xD;&amp;#xA;)}"
44
+ type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter,
45
+ Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral,
46
+ PublicKeyToken=b03f5f7f11d50a3a"
47
+ name="Text Formatter" /&gt;
48
+ &lt;/formatters&gt;
49
+ &lt;specialSources&gt;
50
+ &lt;allEvents switchValue="All" name="All Events"&gt;
51
+ &lt;listeners&gt;
52
+ &lt;add name="Test Capturing Listener" /&gt;
53
+ &lt;/listeners&gt;
54
+ &lt;/allEvents&gt;
55
+ &lt;/specialSources&gt;
56
+ &lt;/loggingConfiguration&gt;
57
+ &lt;/configuration&gt;
58
+ </code>
59
+ </example>
60
+ <author>Erich Eichinger</author>
61
+ </member>
62
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.#ctor(Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData,Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.ILogFormatter)">
63
+ <summary>
64
+ Initializes this instance from <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData"/> configuration
65
+ information.
66
+ </summary>
67
+ </member>
68
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.Write(System.String)">
69
+ <summary>
70
+ NOT USED BY ENTLIB
71
+ </summary>
72
+ <exception cref="T:System.NotImplementedException"/>
73
+ </member>
74
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.WriteLine(System.String)">
75
+ <summary>
76
+ NOT USED BY ENTLIB
77
+ </summary>
78
+ <exception cref="T:System.NotImplementedException"/>
79
+ </member>
80
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.TraceData(System.Diagnostics.TraceEventCache,System.String,System.Diagnostics.TraceEventType,System.Int32,System.Object)">
81
+ <summary>
82
+ Overridden to redirect to call <see cref="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.Log(System.Diagnostics.TraceEventType,System.String,System.Int32,System.String,System.Object[])"/>.
83
+ </summary>
84
+ </member>
85
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.Log(System.Diagnostics.TraceEventType,System.String,System.Int32,System.String,System.Object[])">
86
+ <summary>
87
+ Logs the given message to the Common.Logging infrastructure
88
+ </summary>
89
+ </member>
90
+ <member name="P:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.LoggerNameFormat">
91
+ <summary>
92
+ Format to use for creating the logger name. Defaults to "{listenerName}.{sourceName}".
93
+ </summary>
94
+ <remarks>
95
+ Available placeholders are:
96
+ <list type="bullet">
97
+ <item>{listenerName}: the configured name of this listener instance.</item>
98
+ <item>{sourceName}: the trace source name an event originates from (see e.g. <see cref="M:System.Diagnostics.TraceListener.TraceEvent(System.Diagnostics.TraceEventCache,System.String,System.Diagnostics.TraceEventType,System.Int32,System.String,System.Object[])"/>.</item>
99
+ </list>
100
+ </remarks>
101
+ </member>
102
+ <member name="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.LogEntryMessage">
103
+ <summary>
104
+ The message object to be logged. Overrides <see cref="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListener.LogEntryMessage.ToString"/> to format
105
+ the associated <see cref="T:Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry"/>
106
+ </summary>
107
+ </member>
108
+ <member name="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerAssembler">
109
+ <summary>
110
+ This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code.
111
+ Represents the process to build a <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/> described by a
112
+ <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData"/> configuration object.
113
+ </summary>
114
+ </member>
115
+ <member name="M:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerAssembler.Assemble(Microsoft.Practices.ObjectBuilder.IBuilderContext,Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.TraceListenerData,Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource,Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfigurationReflectionCache)">
116
+ <summary>
117
+ This method supports the Enterprise Library infrastructure and is not intended to be used directly from your code.
118
+ Builds a <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/> described by a
119
+ <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData"/> configuration object.
120
+ </summary>
121
+ </member>
122
+ <member name="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData">
123
+ <summary>
124
+ Represents the configuration settings that describe a <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/>.
125
+ </summary>
126
+ </member>
127
+ <member name="P:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData.LoggerNameFormat">
128
+ <summary>
129
+ The logger name format to use for creating logger names from <see cref="P:Microsoft.Practices.EnterpriseLibrary.Common.Configuration.NamedConfigurationElement.Name"/> and
130
+ </summary>
131
+ </member>
132
+ <member name="P:Common.Logging.EntLib.CommonLoggingEntlibTraceListenerData.Formatter">
133
+ <summary>
134
+ Gets or Sets the formatter name
135
+ </summary>
136
+ </member>
137
+ <member name="T:Common.Logging.EntLib.EntLibLogger">
138
+ <summary>
139
+ Concrete implementation of <see cref="T:Common.Logging.ILog"/> interface specific to Enterprise Logging 3.1.
140
+ </summary>
141
+ <remarks>
142
+ Instances are created by the <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/>. <see cref="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.DefaultPriority"/>
143
+ is used for logging a <see cref="T:Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry"/> to <see cref="M:Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter.Write(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)"/>.
144
+ The category name used is the name passed into <see cref="M:Common.Logging.LogManager.GetLogger(System.String)"/>. For configuring logging, see <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/>.
145
+ </remarks>
146
+ <seealso cref="T:Common.Logging.ILog"/>
147
+ <seealso cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/>
148
+ <author>Mark Pollack</author>
149
+ <author>Erich Eichinger</author>
150
+ </member>
151
+ <member name="M:Common.Logging.EntLib.EntLibLogger.#ctor(System.String,Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter,Common.Logging.EntLib.EntLibLoggerSettings)">
152
+ <summary>
153
+ Initializes a new instance of the <see cref="T:Common.Logging.EntLib.EntLibLogger"/> class.
154
+ </summary>
155
+ <param name="category">The category.</param>
156
+ <param name="logWriter">the <see cref="P:Common.Logging.EntLib.EntLibLogger.LogWriter"/> to write log events to.</param>
157
+ <param name="settings">the logger settings</param>
158
+ </member>
159
+ <member name="M:Common.Logging.EntLib.EntLibLogger.WriteInternal(Common.Logging.LogLevel,System.Object,System.Exception)">
160
+ <summary>
161
+ Actually sends the message to the EnterpriseLogging log system.
162
+ </summary>
163
+ <param name="logLevel">the level of this log event.</param>
164
+ <param name="message">the message to log</param>
165
+ <param name="exception">the exception to log (may be null)</param>
166
+ </member>
167
+ <member name="M:Common.Logging.EntLib.EntLibLogger.ShouldLog(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)">
168
+ <summary>
169
+ May be overridden for custom filter logic
170
+ </summary>
171
+ <param name="log"></param>
172
+ <returns></returns>
173
+ </member>
174
+ <member name="M:Common.Logging.EntLib.EntLibLogger.WriteLog(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)">
175
+ <summary>
176
+ Write the fully populated event to the log.
177
+ </summary>
178
+ </member>
179
+ <member name="M:Common.Logging.EntLib.EntLibLogger.GetTraceEventType(Common.Logging.LogLevel)">
180
+ <summary>
181
+ Translates a <see cref="T:Common.Logging.LogLevel"/> to a <see cref="T:System.Diagnostics.TraceEventType"/>.
182
+ </summary>
183
+ </member>
184
+ <member name="M:Common.Logging.EntLib.EntLibLogger.CreateLogEntry(System.Diagnostics.TraceEventType)">
185
+ <summary>
186
+ Creates a minimal log entry instance that will be passed into <see cref="M:Microsoft.Practices.EnterpriseLibrary.Logging.Logger.ShouldLog(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)"/>
187
+ to asap decide, whether this event should be logged.
188
+ </summary>
189
+ <param name="traceEventType">trace event severity.</param>
190
+ <returns></returns>
191
+ </member>
192
+ <member name="M:Common.Logging.EntLib.EntLibLogger.PopulateLogEntry(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry,System.Object,System.Exception)">
193
+ <summary>
194
+ Configures the log entry.
195
+ </summary>
196
+ <param name="log">The log.</param>
197
+ <param name="message">The message.</param>
198
+ <param name="ex">The ex.</param>
199
+ </member>
200
+ <member name="M:Common.Logging.EntLib.EntLibLogger.AddExceptionInfo(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry,System.Exception)">
201
+ <summary>
202
+ Adds the exception info.
203
+ </summary>
204
+ <param name="log">The log entry.</param>
205
+ <param name="exception">The exception.</param>
206
+ <returns></returns>
207
+ </member>
208
+ <member name="P:Common.Logging.EntLib.EntLibLogger.Category">
209
+ <summary>
210
+ The category of this logger
211
+ </summary>
212
+ </member>
213
+ <member name="P:Common.Logging.EntLib.EntLibLogger.Settings">
214
+ <summary>
215
+ The settings used by this logger
216
+ </summary>
217
+ </member>
218
+ <member name="P:Common.Logging.EntLib.EntLibLogger.LogWriter">
219
+ <summary>
220
+ The <see cref="P:Common.Logging.EntLib.EntLibLogger.LogWriter"/> used by this logger.
221
+ </summary>
222
+ </member>
223
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsTraceEnabled">
224
+ <summary>
225
+ Gets a value indicating whether this instance is trace enabled.
226
+ </summary>
227
+ </member>
228
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsDebugEnabled">
229
+ <summary>
230
+ Gets a value indicating whether this instance is debug enabled.
231
+ </summary>
232
+ </member>
233
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsInfoEnabled">
234
+ <summary>
235
+ Gets a value indicating whether this instance is info enabled.
236
+ </summary>
237
+ </member>
238
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsWarnEnabled">
239
+ <summary>
240
+ Gets a value indicating whether this instance is warn enabled.
241
+ </summary>
242
+ </member>
243
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsErrorEnabled">
244
+ <summary>
245
+ Gets a value indicating whether this instance is error enabled.
246
+ </summary>
247
+ </member>
248
+ <member name="P:Common.Logging.EntLib.EntLibLogger.IsFatalEnabled">
249
+ <summary>
250
+ Gets a value indicating whether this instance is fatal enabled.
251
+ </summary>
252
+ </member>
253
+ <member name="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter">
254
+ <summary>
255
+ Adapts the EnterpriseLibrary 3.1 logging system to Common.Logging.
256
+ </summary>
257
+ <remarks>
258
+ The following configuration property values may be configured:
259
+ <list type="bullet">
260
+ <item>DefaultPriority (see <see cref="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.DefaultPriority"/>)</item>
261
+ <item>ExceptionFormat (see <see cref="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.ExceptionFormat"/>)</item>
262
+ </list>
263
+ </remarks>
264
+ <example>
265
+ The following snippet shows how to configure EntLib logging for Common.Logging:
266
+ <code>
267
+ &lt;configuration&gt;
268
+ &lt;configSections&gt;
269
+ &lt;section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /&gt;
270
+ &lt;section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;
271
+ &lt;/configSections&gt;
272
+ &lt;common&gt;
273
+ &lt;logging&gt;
274
+ &lt;factoryAdapter type="Common.Logging.EntLib.EntLibLoggerFactoryAdapter, Common.Logging.EntLib"&gt;
275
+ &lt;arg key="DefaultPriority" value="-1" /&gt;
276
+ &lt;/factoryAdapter&gt;
277
+ &lt;/logging&gt;
278
+ &lt;/common&gt;
279
+ &lt;loggingConfiguration name="Logging Application Block"
280
+ &lt;-- configure enterprise logging application block here --&gt;
281
+ ...
282
+ &lt;/loggingConfiguration&gt;
283
+ &lt;/configuration&gt;
284
+ </code>
285
+ </example>
286
+ <author>Mark Pollack</author>
287
+ <author>Erich Eichinger</author>
288
+ </member>
289
+ <member name="M:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.#ctor">
290
+ <summary>
291
+ Initializes a new instance of the <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/> class.
292
+ </summary>
293
+ </member>
294
+ <member name="M:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.#ctor(System.Int32,System.String,Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter)">
295
+ <summary>
296
+ Initializes a new instance of the <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/> class
297
+ with the specified configuration parameters.
298
+ </summary>
299
+ </member>
300
+ <member name="M:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.#ctor(System.Collections.Specialized.NameValueCollection)">
301
+ <summary>
302
+ Initializes a new instance of the <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/> class.
303
+ </summary>
304
+ <remarks>passed in values are not used, configuration is external to EntLib logging API</remarks>
305
+ <param name="properties">The properties.</param>
306
+ </member>
307
+ <member name="M:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.CreateLogger(System.String)">
308
+ <summary>
309
+ Creates a new <see cref="T:Common.Logging.EntLib.EntLibLogger"/> instance.
310
+ </summary>
311
+ </member>
312
+ <member name="M:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.CreateLogger(System.String,Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter,Common.Logging.EntLib.EntLibLoggerSettings)">
313
+ <summary>
314
+ Creates a new <see cref="T:Common.Logging.EntLib.EntLibLogger"/> instance.
315
+ </summary>
316
+ </member>
317
+ <member name="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.DefaultPriority">
318
+ <summary>
319
+ The default priority used to log events.
320
+ </summary>
321
+ <remarks>defaults to <see cref="F:Common.Logging.EntLib.EntLibLoggerSettings.DEFAULTPRIORITY"/></remarks>
322
+ </member>
323
+ <member name="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.ExceptionFormat">
324
+ <summary>
325
+ The format string used for formatting exceptions
326
+ </summary>
327
+ <remarks>
328
+ defaults to <see cref="F:Common.Logging.EntLib.EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT"/>
329
+ </remarks>
330
+ </member>
331
+ <member name="P:Common.Logging.EntLib.EntLibLoggerFactoryAdapter.LogWriter">
332
+ <summary>
333
+ the <see cref="F:Common.Logging.EntLib.EntLibLoggerFactoryAdapter._logWriter"/> to write log events to.
334
+ </summary>
335
+ <remarks>
336
+ defaults to <see cref="P:Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Writer"/>.
337
+ </remarks>
338
+ </member>
339
+ <member name="T:Common.Logging.EntLib.EntLibLoggerSettings">
340
+ <summary>
341
+ Holds configuration settings for <see cref="T:Common.Logging.EntLib.EntLibLogger"/>s.
342
+ </summary>
343
+ <author>Erich Eichinger</author>
344
+ </member>
345
+ <member name="F:Common.Logging.EntLib.EntLibLoggerSettings.DEFAULTPRIORITY">
346
+ <summary>
347
+ the default priority used for logging.
348
+ </summary>
349
+ </member>
350
+ <member name="F:Common.Logging.EntLib.EntLibLoggerSettings.DEFAULTEXCEPTIONFORMAT">
351
+ <summary>
352
+ the default <see cref="F:Common.Logging.EntLib.EntLibLoggerSettings.exceptionFormat"/> used for formatting error message
353
+ </summary>
354
+ <remarks>
355
+ "Exception[ message = $(exception.message), source = $(exception.source), targetsite = $(exception.targetsite), stacktrace = $(exception.stacktrace) ]"
356
+ </remarks>
357
+ </member>
358
+ <member name="F:Common.Logging.EntLib.EntLibLoggerSettings.priority">
359
+ <summary>
360
+ the default priority to be used.
361
+ </summary>
362
+ </member>
363
+ <member name="F:Common.Logging.EntLib.EntLibLoggerSettings.exceptionFormat">
364
+ <summary>
365
+ the exception format to be used.
366
+ </summary>
367
+ </member>
368
+ <member name="M:Common.Logging.EntLib.EntLibLoggerSettings.#ctor(System.Int32,System.String)">
369
+ <summary>
370
+ Initializes a new instance.
371
+ </summary>
372
+ </member>
373
+ <member name="T:Common.Logging.EntLib.NamespaceDoc">
374
+ <summary>
375
+ <para>This namespace contains the implementations to plug EntLib 3.1 into Common.Logging.</para>
376
+ <para>For an example on how to configure
377
+ <list type="bullet">
378
+ <item>Common.Logging to render its output to Entlib, see <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/>.</item>
379
+ <item>Entlib to render its output to Common.Logging use <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/>.</item>
380
+ </list>
381
+ </para>
382
+ </summary>
383
+ </member>
384
+ <member name="T:Common.Logging.EntLib.SeverityFilter">
385
+ <summary>
386
+ Filters <see cref="T:Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry"/>s by severity (see <see cref="T:System.Diagnostics.TraceEventType"/>).
387
+ </summary>
388
+ <author>Erich Eichinger</author>
389
+ </member>
390
+ <member name="M:Common.Logging.EntLib.SeverityFilter.#ctor(System.String,System.Int32)">
391
+ <summary>
392
+ Creates a new filter instance
393
+ </summary>
394
+ </member>
395
+ <member name="M:Common.Logging.EntLib.SeverityFilter.#ctor(System.String,System.Diagnostics.TraceEventType)">
396
+ <summary>
397
+ Creates a new filter instance
398
+ </summary>
399
+ </member>
400
+ <member name="M:Common.Logging.EntLib.SeverityFilter.#ctor(System.Collections.Specialized.NameValueCollection)">
401
+ <summary>
402
+ Creates a new filter instance
403
+ </summary>
404
+ </member>
405
+ <member name="M:Common.Logging.EntLib.SeverityFilter.Filter(Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)">
406
+ <summary>
407
+ Check, if <paramref name="log"/> severity matches <see cref="F:Common.Logging.EntLib.SeverityFilter.severityMask"/>.
408
+ </summary>
409
+ <param name="log"></param>
410
+ <returns></returns>
411
+ </member>
412
+ <member name="M:Common.Logging.EntLib.SeverityFilter.ShouldLog(System.Diagnostics.TraceEventType)">
413
+ <summary>
414
+ Checks, whether the specified severity is allowed to log.
415
+ </summary>
416
+ </member>
417
+ <member name="P:Common.Logging.EntLib.SeverityFilter.SeverityMask">
418
+ <summary>
419
+ Bitmask to identify severity levels that should be logged.
420
+ </summary>
421
+ </member>
422
+ <member name="T:AssemblyDoc">
423
+ <summary>
424
+ <para>
425
+ This assembly contains the adapter to plug
426
+ Microsoft Enterprise Logging Library 3.1. into the Common.Logging infrastructure.
427
+ </para>
428
+ <para>For an example on how to configure
429
+ <list type="bullet">
430
+ <item>Common.Logging to render its output to Entlib, see <see cref="T:Common.Logging.EntLib.EntLibLoggerFactoryAdapter"/>.</item>
431
+ <item>Entlib to render its output to Common.Logging use <see cref="T:Common.Logging.EntLib.CommonLoggingEntlibTraceListener"/>.</item>
432
+ </list>
433
+ </para>
434
+ </summary>
435
+ </member>
436
+ </members>
437
+ </doc>