Closed GoogleCodeExporter closed 9 years ago
Original comment by azizatif
on 19 Feb 2010 at 5:42
Original comment by azizatif
on 19 Feb 2010 at 6:39
Fixed in r709.
Original comment by azizatif
on 20 Feb 2010 at 8:24
Demonstration of fix:
IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4200
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.AddReference('Elmah')
>>> from System import DateTime, ApplicationException
>>> from System.IO import Directory
>>> from Elmah import Error, XmlFileErrorLog
>>> log = XmlFileErrorLog(r'C:\errors')
>>> error = Error(ApplicationException())
>>> error.Time = DateTime(2010, 1, 1, 12, 0, 0)
>>> log.Log(error)
'93061650-58ff-4d7d-91de-ca97e555db8c'
>>> print '\n'.join(Directory.GetFiles(log.LogPath))
C:\errors\error-2010-01-01110000Z-93061650-58ff-4d7d-91de-ca97e555db8c.xml
The time embedded in the file is that which was set on the Error object's Time
property.
Original comment by azizatif
on 20 Feb 2010 at 8:30
Original issue reported on code.google.com by
cagdaste...@gmail.com
on 19 Feb 2010 at 4:24