Code Coverage by Clover.NET

New Windows.Forms target

View: New views
8 Messages — Rating Filter:   Alert me  

New Windows.Forms target

by marcin krupinski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
  I've just added to new targets that logs to Windows.Forms controls:
  - FormControl target that logs to Text property of any Windows.Forms.Control
  - RichTextBox target with row- and word- coloring similar to ColoredConsole target.

  Sources and samples can be found in SVN repository. Let me know what you think of those targets.

Martin


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: New Windows.Forms target

by Jaroslaw_Kowalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thanks. I've updated it a bit to build on all supported frameworks and made a new snapshot (20060704).
 
Jarek
----- Original Message -----
From: yoszek@...
Sent: Tuesday, July 04, 2006 7:43 AM
Subject: [Nlog-list] New Windows.Forms target

Hi,
  I've just added to new targets that logs to Windows.Forms controls:
  - FormControl target that logs to Text property of any Windows.Forms.Control
  - RichTextBox target with row- and word- coloring similar to ColoredConsole target.

  Sources and samples can be found in SVN repository. Let me know what you think of those targets.

Martin


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Can't build .NET2 solution

by Francis * :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The .NET 2 solution from SVN has 29 errors and won't compile.  I tried
removing all the projects except Nlog-net-2.0 but it still doesn't compile.
How do you build it?

Thanks,

Francis


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: Can't build .NET2 solution

by Jaroslaw_Kowalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ctrl-Shift-B ;-) I don't get any errors. I use NLog-net-2.0.sln and I open
it with VS2005 Professional.

I've just tried to checkout the sources for NLog-1.0-RC1 on a clean machine
with just Visual C# Express Edition installed and it also builds fine
(modulo some unsupported features - Solution Items and NLogC project). Same
thing with the official source release nlog-1.0-RC1-src.zip and the latest
SVN trunk.

Can you post the error messages you get ?

Jarek
----- Original Message -----
From: "Francis Gingras" <francis@...>
To: <nlog-list@...>
Sent: Wednesday, July 05, 2006 4:37 AM
Subject: [Nlog-list] Can't build .NET2 solution


> Hi,
>
> The .NET 2 solution from SVN has 29 errors and won't compile.  I tried
> removing all the projects except Nlog-net-2.0 but it still doesn't
> compile.
> How do you build it?
>
> Thanks,
>
> Francis
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nlog-list mailing list
> Nlog-list@...
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: Can't build .NET2 solution

by Francis * :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jarek,

Debug compiles fine, try Release: 29 errors.  Let me know if you don't get
them and I'll send you the list.

Thanks,

Francis

-----Original Message-----
From: Jaroslaw Kowalski [mailto:jaak@...]
Sent: Wednesday, July 05, 2006 00:04
To: Francis Gingras; nlog-list@...
Subject: Re: [Nlog-list] Can't build .NET2 solution

Ctrl-Shift-B ;-) I don't get any errors. I use NLog-net-2.0.sln and I open
it with VS2005 Professional.

I've just tried to checkout the sources for NLog-1.0-RC1 on a clean machine
with just Visual C# Express Edition installed and it also builds fine
(modulo some unsupported features - Solution Items and NLogC project). Same
thing with the official source release nlog-1.0-RC1-src.zip and the latest
SVN trunk.

Can you post the error messages you get ?

Jarek
----- Original Message -----
From: "Francis Gingras" <francis@...>
To: <nlog-list@...>
Sent: Wednesday, July 05, 2006 4:37 AM
Subject: [Nlog-list] Can't build .NET2 solution


> Hi,
>
> The .NET 2 solution from SVN has 29 errors and won't compile.  I tried
> removing all the projects except Nlog-net-2.0 but it still doesn't
> compile.
> How do you build it?
>
> Thanks,
>
> Francis
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nlog-list mailing list
> Nlog-list@...
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: Can't build .NET2 solution

by Jaroslaw_Kowalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fixed in SVN. Thanks.

Jarek
----- Original Message -----
From: "Francis Gingras" <francis@...>
To: "'Jaroslaw Kowalski'" <jaak@...>
Cc: <nlog-list@...>
Sent: Wednesday, July 05, 2006 6:13 AM
Subject: Re: [Nlog-list] Can't build .NET2 solution


> Jarek,
>
> Debug compiles fine, try Release: 29 errors.  Let me know if you don't get
> them and I'll send you the list.
>
> Thanks,
>
> Francis
>
> -----Original Message-----
> From: Jaroslaw Kowalski [mailto:jaak@...]
> Sent: Wednesday, July 05, 2006 00:04
> To: Francis Gingras; nlog-list@...
> Subject: Re: [Nlog-list] Can't build .NET2 solution
>
> Ctrl-Shift-B ;-) I don't get any errors. I use NLog-net-2.0.sln and I open
> it with VS2005 Professional.
>
> I've just tried to checkout the sources for NLog-1.0-RC1 on a clean
> machine
> with just Visual C# Express Edition installed and it also builds fine
> (modulo some unsupported features - Solution Items and NLogC project).
> Same
> thing with the official source release nlog-1.0-RC1-src.zip and the latest
> SVN trunk.
>
> Can you post the error messages you get ?
>
> Jarek
> ----- Original Message -----
> From: "Francis Gingras" <francis@...>
> To: <nlog-list@...>
> Sent: Wednesday, July 05, 2006 4:37 AM
> Subject: [Nlog-list] Can't build .NET2 solution
>
>
>> Hi,
>>
>> The .NET 2 solution from SVN has 29 errors and won't compile.  I tried
>> removing all the projects except Nlog-net-2.0 but it still doesn't
>> compile.
>> How do you build it?
>>
>> Thanks,
>>
>> Francis
>>
>>
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Nlog-list mailing list
>> Nlog-list@...
>> https://lists.sourceforge.net/lists/listinfo/nlog-list
>>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nlog-list mailing list
> Nlog-list@...
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nlog-list mailing list
> Nlog-list@...
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: New Windows.Forms target

by MaartenClaes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Martin,

Nice worker!

For me it compiles and works great in Windows.Forms applications. Logger.logs from withing the application thread are ok. When I logger.log from another thread (not the application thread) then nothing is send to the richtextbox.

I then tried using the <targets async="true"> feature but when you enable that nothing is send to the richtextbox.

Are you aware of this problem? I will look into it. I think we need some kind of form.invokes here...

Maarten

Parent Message unknown Re: New Windows.Forms target

by marcin krupinski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
    Maarten has recently found a bug in RichTextBoxTarget - there were problems with writing to control from another thread. Maarten also made a patch to NLog, which after slight modifications (building under .NET 1.1 , and making same changes to FormControlTarget is now in SVN).
   Thanks for the patch Maarten. Hope it's not your last code that will be in SVN :)


On 7/31/06, Maarten Claes <m.claes@...> wrote:
Hello Martin,

Invoking the RichTextBox-code on the application thread works! I tested with async targets and all messages (also from other threads) are logged. I've only tested in .NET 2.0.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list