Menu

#6 Log file location changes after using openFileDialog

v1.1
open
nobody
5
2004-01-14
2004-01-14
No

If I create a log at application start with

Logger _logger = Logger.CreateFileLogger( "Debug.log" )

Debug.log gets created in the application directory.
But after a call to an OpenFileDialog box

openFileDialog1.ShowDialog();

any messages I log to _logger will show up in a new log
with the same name as the original if I happen to
navigate to different directory in openFileDialog1.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB