« Return to Thread: [jira] Created: (LOG4NET-189) XmlConfigurator.Configure(Stream) needs a a Stream with pointer at beginning

[jira] Created: (LOG4NET-189) XmlConfigurator.Configure(Stream) needs a a Stream with pointer at beginning

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread

XmlConfigurator.Configure(Stream) needs a a Stream with pointer at beginning
----------------------------------------------------------------------------

                 Key: LOG4NET-189
                 URL: https://issues.apache.org/jira/browse/LOG4NET-189
             Project: Log4net
          Issue Type: Improvement
            Reporter: Maik
            Priority: Trivial


Is it possible to set the stream for configuring log4net to the beginning of the stream by default?

In my application I created my own MemoryStream with an XML-Configuration for log4net. Trying to call XmlConfigurator.Configure(myStream), I got an Exeption of the type

System.Xml.XmlException: Missing Root-Element.

Setting the StreamPointer to the beginning by calling

myStream.Seek(0, SeekOrigin.Begin);

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

 « Return to Thread: [jira] Created: (LOG4NET-189) XmlConfigurator.Configure(Stream) needs a a Stream with pointer at beginning