You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2005/12/14 17:08:31 UTC
svn commit: r356793 - in /logging/log4net/trunk/src:
Appender/LocalSyslogAppender.cs AssemblyInfo.cs Layout/XMLLayout.cs
Util/PropertiesDictionary.cs Util/ReadOnlyPropertiesDictionary.cs
Author: nicko
Date: Wed Dec 14 08:08:01 2005
New Revision: 356793
URL: http://svn.apache.org/viewcvs?rev=356793&view=rev
Log:
Updated doc comments to work with our target platforms. Fixed some ambiguous doc references.
AssemblyInfo.cs
Only use AssemblyKeyFile attribute on platforms that don't support the /keyfile compiler switch.
XMLLayout.cs
Updated to use new version of XmlConvert.ToString(DateTime) on .NET 2.0 platforms
PropertiesDictionary.cs & ReadOnlyPropertiesDictionary.cs
I can't find a way to cref the index operator (i.e. []) correctly on all platforms, so rewrote text not to have to link directly to the operator.
Modified:
logging/log4net/trunk/src/Appender/LocalSyslogAppender.cs
logging/log4net/trunk/src/AssemblyInfo.cs
logging/log4net/trunk/src/Layout/XMLLayout.cs
logging/log4net/trunk/src/Util/PropertiesDictionary.cs
logging/log4net/trunk/src/Util/ReadOnlyPropertiesDictionary.cs
Modified: logging/log4net/trunk/src/Appender/LocalSyslogAppender.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/Appender/LocalSyslogAppender.cs?rev=356793&r1=356792&r2=356793&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/LocalSyslogAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/LocalSyslogAppender.cs Wed Dec 14 08:08:01 2005
@@ -126,7 +126,7 @@
/// <remarks>
/// <para>
/// The syslog facility defines which subsystem the logging comes from.
- /// This is set on the <see cref="Facility"/> property.
+ /// This is set on the <see cref="LocalSyslogAppender.Facility"/> property.
/// </para>
/// </remarks>
public enum SyslogFacility
Modified: logging/log4net/trunk/src/AssemblyInfo.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/AssemblyInfo.cs?rev=356793&r1=356792&r2=356793&view=diff
==============================================================================
--- logging/log4net/trunk/src/AssemblyInfo.cs (original)
+++ logging/log4net/trunk/src/AssemblyInfo.cs Wed Dec 14 08:08:01 2005
@@ -106,7 +106,7 @@
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
-#if STRONG
+#if STRONG && (CLI_1_0 || NET_1_0 || NET_1_1 || NETCF_1_0 || SSCLI)
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\..\log4net.snk")]
#endif
Modified: logging/log4net/trunk/src/Layout/XMLLayout.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/Layout/XMLLayout.cs?rev=356793&r1=356792&r2=356793&view=diff
==============================================================================
--- logging/log4net/trunk/src/Layout/XMLLayout.cs (original)
+++ logging/log4net/trunk/src/Layout/XMLLayout.cs Wed Dec 14 08:08:01 2005
@@ -218,7 +218,13 @@
{
writer.WriteStartElement(m_elmEvent);
writer.WriteAttributeString(ATTR_LOGGER, loggingEvent.LoggerName);
+
+#if NET_2_0 || MONO_2_0
+ writer.WriteAttributeString(ATTR_TIMESTAMP, XmlConvert.ToString(loggingEvent.TimeStamp, XmlDateTimeSerializationMode.Local));
+#else
writer.WriteAttributeString(ATTR_TIMESTAMP, XmlConvert.ToString(loggingEvent.TimeStamp));
+#endif
+
writer.WriteAttributeString(ATTR_LEVEL, loggingEvent.Level.DisplayName);
writer.WriteAttributeString(ATTR_THREAD, loggingEvent.ThreadName);
Modified: logging/log4net/trunk/src/Util/PropertiesDictionary.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/Util/PropertiesDictionary.cs?rev=356793&r1=356792&r2=356793&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/PropertiesDictionary.cs (original)
+++ logging/log4net/trunk/src/Util/PropertiesDictionary.cs Wed Dec 14 08:08:01 2005
@@ -231,7 +231,7 @@
}
/// <summary>
- /// See <see cref="IDictionary.this"/>
+ /// See <see cref="IDictionary"/> indexer property.
/// </summary>
/// <value>
/// The value for the key specified.
Modified: logging/log4net/trunk/src/Util/ReadOnlyPropertiesDictionary.cs
URL: http://svn.apache.org/viewcvs/logging/log4net/trunk/src/Util/ReadOnlyPropertiesDictionary.cs?rev=356793&r1=356792&r2=356793&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/ReadOnlyPropertiesDictionary.cs (original)
+++ logging/log4net/trunk/src/Util/ReadOnlyPropertiesDictionary.cs Wed Dec 14 08:08:01 2005
@@ -281,7 +281,7 @@
}
/// <summary>
- /// See <see cref="IDictionary.this[object]"/>
+ /// See <see cref="IDictionary"/> indexer property.
/// </summary>
object IDictionary.this[object key]
{