[ http://issues.apache.org/jira/browse/LOG4NET-75?page=all ]
Nicko Cadell closed LOG4NET-75:
-------------------------------
Resolution: Invalid
Jim,
Can you post this query to the log4net user list. For details see
http://logging.apache.org/log4net/support.html
Please include the version of log4net you are using and your log4net
configuration.
Does this issue occur if the LogManager.Shutdown() method is called before the
process exits, or if the <ImmediateFlush value="true" /> is set on your
FileAppender?
Nicko
> StreamWriter doesn't flush
> --------------------------
>
> Key: LOG4NET-75
> URL: http://issues.apache.org/jira/browse/LOG4NET-75
> Project: Log4net
> Type: Bug
> Environment: Windows XP
> Reporter: Jim Showalter
> Priority: Minor
>
> Running NUnit tests and using NHibernate and log4net, the tests complete, and
> NHibernate shuts down. Shortly after that, the command window displays:
> StreamWriterBufferedDataLost was detected
> Message: A StreamWriter was not closed and all
> buffered data within that StreamWriter was not flushed
> to the underlying stream. (This was detected when the
> StreamWriter was finalized with data in its buffer.)
> A portion of the data was lost. Consider one of
> calling Close(), Flush(), setting the StreamWriter's
> AutoFlush property to true, or allocating the
> StreamWriter with a "using" statement. Stream type:
> System.IO.FileStream
> File name: C:\Merlin\qbexe\RunTests.out
> Allocated from:
> at System.Environment.GetStackTrace(Exception e,
> Boolean needFileInfo)
> at System.IO.StreamWriter.Init(Stream stream,
> Encoding encoding, Int32 bufferSize)
> at System.IO.StreamWriter..ctor(String path,
> Boolean append, Encoding encoding, Int32 bufferSize)
> at System.IO.StreamWriter..ctor(String path)
> at NUnit.Console.ConsoleUi.Execute(ConsoleOptions
> options)
> at NUnit.Console.ConsoleUi.Main(String[] args)
> This happens randomly (most of the time it doesn't happen). The problem
> occurs after any of our code has long-since completed execution. Perhaps a
> StreamWriter is not set to AutoFlush = true?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira