Re: Creating a logging library and have questions

2010-02-06 Thread sybrandy
I second Rainer. A logging system should commit (at least) error messages immediately, particularly if the application has multiple threads. Otherwise it is going to make debugging a crashing system a nightmare. When I do it I just stick 'synchronized' in front of the statement that does the

Re: Creating a logging library and have questions

2010-02-06 Thread Steve Teale
sybrandy Wrote: > On 02/03/2010 12:03 AM, Rainer Deyke wrote: > > sybrandy wrote: > >> 1) I use the current core.thread library and put all my messages in a > >> buffer that the thread checks periodically, pulls off a new message, and > >> then writes it to a file. There will be some work to make

Re: Creating a logging library and have questions

2010-02-03 Thread sybrandy
On 02/03/2010 12:03 AM, Rainer Deyke wrote: sybrandy wrote: 1) I use the current core.thread library and put all my messages in a buffer that the thread checks periodically, pulls off a new message, and then writes it to a file. There will be some work to make sure nothing collides with each ot

Re: Creating a logging library and have questions

2010-02-02 Thread Rainer Deyke
sybrandy wrote: > 1) I use the current core.thread library and put all my messages in a > buffer that the thread checks periodically, pulls off a new message, and > then writes it to a file. There will be some work to make sure nothing > collides with each other, but I think I can manage it. Woul

Creating a logging library and have questions

2010-02-02 Thread sybrandy
Hello, Since I'm continuing to write software in D (no, nothing special...just pet projects) I felt that I needed to create a library to handle logging to a file. I have a good start and it seems to work pretty well. I even have a couple ideas left to implement to make it better, however I'