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

[jira] Commented: (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


    [ https://issues.apache.org/jira/browse/LOG4NET-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656714#action_12656714 ]

Ron Grabowski commented on LOG4NET-189:
---------------------------------------

I think the current behavior is good enough...log4net starts reading the stream based on the stream's current position.

> 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