[MonoDevelop] Mono and Crontab
Adam Tauno Williams
awilliam at whitemice.org
Sun Apr 4 10:49:20 EDT 2010
On Sun, 2010-04-04 at 15:43 +0200, "Andrés G. Aragoneses" wrote:
> El 04/04/10 13:56, Mark Devgood escribió:
> > I am also of the opinion that writing a Service is a last resort. Even on
> > Windows I've found them a pain to support, debug, update, etc...
> > So sounds like writing this in a Console app is the way to go. Since this
> Why not get the best of both worlds? Implement your logic in
> SomeLibrary.dll. Then, create a console app that uses this library so
> you can test your cade easier. After, create a service that uses the
> same library for deploying it.
+1; this is the correct way to do things.
> Oh, and make sure you develop a simple logging method that calls
> Console.WriteLine and at the same time writes to the event log
> (System.Diagnostics.*) so you can debug it both from the console app and
> the service.
I've found log4net to be very friendly.
<http://logging.apache.org/log4net/>
--
Adam Tauno Williams <awilliam at whitemice.org> LPIC-1, Novell CLA
<http://www.whitemiceconsulting.com>
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba
More information about the Monodevelop-list
mailing list