Log Message

  • Thread starter Thread starter HoustonK
  • Start date Start date
H

HoustonK

Hi,

I wrote a compact framework 2.0 dll, in this dll, I would like to print out
some message on screen.

Problem here is that if I use windows application (Project),
console.writeline message won't show.

Also, is it possible to run windows (GUI) and console at the same time?

Can you suggest any techniques to implement this?

Thx.

-KK
 
How about another Form that you write messages to - maybe with a ListBox?

WM and PPC don't have a console built-in (though there are add-ons like
Pocket Console).
 
HoustonK said:
I wrote a compact framework 2.0 dll, in this dll, I would like to print out
some message on screen.

I use log4net for this:

http://logging.apache.org/log4net/

I have some code to display the log messages in a scrolling textbox,
which I can turn on in debug versions of the code. I adapted it from
here:

http://blog.markjordan.org/archive/2006/09/05/TextBoxAppender-for-Log4Net.aspx

and here:

http://blog.opennetcf.org/afeinman/PermaLink,guid,7e8df78c-a583-4b35-ae5d-02207210ab40.aspx

It's very handy, especially if you are accustomed to programming in an
environment where you can just print stuff out to see what's going on
in your program.

Hope this helps,

----Scott.
 
Back
Top