Re: Logging and tracing in D

2013-08-07 Thread Jacob Carlborg
On 2013-08-06 06:35, Andre Artus wrote: What is the recommended approach for adding logging and tracing to D apps? Is there a library for it? Tango contains a package for logging: Docs/tutorial: http://dsource.org/projects/tango/wiki/ChapterLogging API reference: http://dsource.org/projects/ta

Re: Logging and tracing in D

2013-08-06 Thread Jesse Phillips
On Tuesday, 6 August 2013 at 18:54:50 UTC, Andre Artus wrote: David wrote: There is std.log (proposed), it doesn't work, I don't like its API. I take it that it hasn't been documented yet, at least I could not find it on dlang.org. http://wiki.dlang.org/Review_Queue

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
-- snip -- I take it that it hasn't been documented yet, at least I could not find it on dlang.org. It's currently in the review queue: http://wiki.dlang.org/Review_Queue but marked on hold/suspended. Thanks, I'll check it out later.

Re: Logging and tracing in D

2013-08-06 Thread David
Am 06.08.2013 20:54, schrieb Andre Artus: >> David wrote: >> Am 06.08.2013 19:22, schrieb Andre Artus: >>> -- snip-- and you get pretty formatted message in console(add log file writer if needed), and you get "smart" logging for free, in that way it will be generated only for debug m

Re: Logging and tracing in D

2013-08-06 Thread H. S. Teoh
On Tue, Aug 06, 2013 at 08:54:48PM +0200, Andre Artus wrote: > >David wrote: > >Am 06.08.2013 19:22, schrieb Andre Artus: > >>-- snip-- > >>>and you get pretty formatted message in console(add log file writer > >>>if needed), and you get "smart" logging for free, in that way it > >>>will be generat

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
David wrote: Am 06.08.2013 19:22, schrieb Andre Artus: -- snip-- and you get pretty formatted message in console(add log file writer if needed), and you get "smart" logging for free, in that way it will be generated only for debug mode(in release it will be skipped because of debug specifier)

Re: Logging and tracing in D

2013-08-06 Thread David
Am 06.08.2013 19:22, schrieb Andre Artus: > -- snip-- >> and you get pretty formatted message in console(add log file writer if >> needed), and you get "smart" logging for free, in that way it will be >> generated only for debug mode(in release it will be skipped because of >> debug specifier). >

Re: Logging and tracing in D

2013-08-06 Thread H. S. Teoh
On Tue, Aug 06, 2013 at 07:22:11PM +0200, Andre Artus wrote: > -- snip-- > >and you get pretty formatted message in console(add log file > >writer if needed), and you get "smart" logging for free, in that > >way it will be generated only for debug mode(in release it will be > >skipped because of de

Re: Logging and tracing in D

2013-08-06 Thread Andre Artus
-- snip-- and you get pretty formatted message in console(add log file writer if needed), and you get "smart" logging for free, in that way it will be generated only for debug mode(in release it will be skipped because of debug specifier). Thanks, can I take it that there is no official libra

Re: Logging and tracing in D

2013-08-06 Thread evilrat
On Tuesday, 6 August 2013 at 04:35:39 UTC, Andre Artus wrote: What is the recommended approach for adding logging and tracing to D apps? Is there a library for it? custom very simple yet powerful logging can be achieved with templates and debug specifier, something like this: ---

Logging and tracing in D

2013-08-05 Thread Andre Artus
What is the recommended approach for adding logging and tracing to D apps? Is there a library for it?