all groups > dotnet compact framework > december 2007 >
You're in the

dotnet compact framework

group:

Log Message


Log Message HoustonK
12/27/2007 7:09:16 PM
dotnet compact framework: 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.

Re: Log Message ctacke/
12/27/2007 9:20:21 PM
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).


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


[quoted text, click to view]

Re: Log Message Scott Gifford
12/28/2007 12:51:27 AM
HoustonK <HoustonK@discussions.microsoft.com> writes:

[quoted text, click to view]

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,

AddThis Social Bookmark Button