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

Lukasz Antoniak commented on LOG4NET-194:
-----------------------------------------

Welcome Ron!

If you would like to see it working in the big picture I suggest doing the 
following:
1)      Download Log4NetTest_20090210.zip package and extract it.
2)      Open the downloaded test project in Visual Studio 2008.
3)      Build it and run (requires Windows Mobile 6 Professional Emulator, .Net 
CF 3.5).
     a. As the application starts, the configuration file is being created and 
2 messages logged (to "log-file" in application's Program Files directory).
     b. You may press the "Log" button several times. Each time you do that 2 
messages are logged (info and debug).
     c. When you click "Change" button, the configuration file is being 
overwritten, and Log4Net reconfigured. After that log messages are stored in 
"log-file2".
     d. Press "Log" several times to put some data in the second log file.

I am not familiar with Nant, so I have not changed the build script in the 
Log4Net project. I have submitted several packages, so you can trace changes 
that I have made. You can also build the Log4Net project 
("log4netcf.vs2008_20090210.zip" - includes my changes) using Visual Studio 
2008 (VS solution file included).

Fill free to ask any question you like.

Regards,
Lukasz Antoniak


> FileSystemWatcher for .Net Compact Framework
> --------------------------------------------
>
>                 Key: LOG4NET-194
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-194
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Other
>    Affects Versions: 1.2.10
>         Environment: .Net Compact Framework 1.0/2.0/3.5
>            Reporter: Lukasz Antoniak
>            Priority: Minor
>         Attachments: log4netcf.vs2008.dll, log4netcf.vs2008_20090210.zip, 
> Log4NetTest_20090210.zip, Modified_Files_20090210.zip
>
>
> Welcome!
> I would like to suggest an improvement of Log4Net utility for .Net Compact 
> Framework. The .Net CF 1.0/2.0/3.5 does not provide developers with 
> FileSystemWatcher class. However there is nothing against implementing a 
> simple class invoking SHChangeNotifyRegister API in Log4Net. I have recently 
> started developing mobile applications and I regret lack of automatic 
> reconfiguration feature in Log4Net .Net CF. I am quite familiar with 
> SHChangeNotifyRegister API and I could try to modify XmlConfigurator class to 
> support configuration file monitoring. What do you think of this idea?
> If there was an opportunity, I would like to contribute to Log4Net project.
> Regards,
> Lukasz Antoniak

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

Reply via email to