nicko 2004/12/05 18:24:49
Modified: src log4net.csproj Added: src/Layout RawUtcTimeStampLayout.cs Log: Added RawUtcTimeStampLayout Revision Changes Path 1.1 logging-log4net/src/Layout/RawUtcTimeStampLayout.cs Index: RawUtcTimeStampLayout.cs =================================================================== #region Copyright & License // // Copyright 2001-2004 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #endregion using System; using System.Text; using log4net.Core; using log4net.Util; namespace log4net.Layout { /// <summary> /// Extract the date from the <see cref="LoggingEvent"/> /// </summary> /// <remarks> /// <para> /// Extract the date from the <see cref="LoggingEvent"/> /// </para> /// </remarks> /// <author>Nicko Cadell</author> /// <author>Gert Driesen</author> public class RawUtcTimeStampLayout : IRawLayout { #region Constructors /// <summary> /// Constructs a RawUtcTimeStampLayout /// </summary> public RawUtcTimeStampLayout() { } #endregion #region Implementation of IRawLayout /// <summary> /// Gets the <see cref="LoggingEvent.TimeStamp"/> as a <see cref="DateTime"/>. /// </summary> /// <param name="loggingEvent">The event to format</param> /// <returns>returns the time stamp</returns> /// <remarks> /// <para> /// Gets the <see cref="LoggingEvent.TimeStamp"/> as a <see cref="DateTime"/>. /// </para> /// <para> /// The time stamp is in universal time. To format the time stamp /// in local time use <see cref="RawTimeStampLayout"/>. /// </para> /// </remarks> public virtual object Format(LoggingEvent loggingEvent) { return loggingEvent.TimeStamp.ToUniversalTime(); } #endregion } } 1.14 +15 -0 logging-log4net/src/log4net.csproj Index: log4net.csproj =================================================================== RCS file: /home/cvs/logging-log4net/src/log4net.csproj,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- log4net.csproj 15 Nov 2004 02:52:58 -0000 1.13 +++ log4net.csproj 6 Dec 2004 02:24:49 -0000 1.14 @@ -238,6 +238,11 @@ BuildAction = "Compile" /> <File + RelPath = "Appender\TelnetAppender.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Appender\TextWriterAppender.cs" SubType = "Code" BuildAction = "Compile" @@ -563,6 +568,11 @@ BuildAction = "Compile" /> <File + RelPath = "Layout\RawUtcTimeStampLayout.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Layout\SimpleLayout.cs" SubType = "Code" BuildAction = "Compile" @@ -684,6 +694,11 @@ /> <File RelPath = "Layout\Pattern\UserNamePatternConverter.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Layout\Pattern\UtcDatePatternConverter.cs" SubType = "Code" BuildAction = "Compile" />
