Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #804

Re: How to implement diagnostic messages?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.programming
Subject Re: How to implement diagnostic messages?
Date Fri, 09 Sep 2011 10:33:32 +1200
Lines 25
Message-ID <9csu5sFn7mU1@mid.individual.net> (permalink)
References <4e68c9ed$0$31290$a729d347@news.telepac.pt>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net zYg0qH6UVIUk76pT/sR10gf6KvjOBejFn7TtkfuA1ES6ZeIamZ
Cancel-Lock sha1:PTeLe3xcJM+Or3D2L9QMz/m5AjQ=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <4e68c9ed$0$31290$a729d347@news.telepac.pt>
Xref x330-a1.tempe.blueboxinc.net comp.programming:804

Show key headers only | View raw


On 09/ 9/11 01:58 AM, Rui Maciel wrote:
> In some applications it's useful to have, at least in the development
> stages, a way to output diagnostic messages in order to help developers
> check what's happening under the hood.  Yet, although this can be useful and
> in some times even invaluable, there isn't much information on what are
> considered to be good practices regarding the implementation of diagnostic
> messages.

That's because everyone has their favourite!

> With this in mind, what are your views on how to implement diagnostic
> messages?  Are simple outputs to stderr enough or are there better ways to
> handle this?

You typically have three choices in a hosted environment:

1) standard output/error
2) a log file
3) system log

All have their good and bad points and I've seen them all (especially 2 
and 3) used by well regarded applications.

-- 
Ian Collins

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to implement diagnostic messages? Rui Maciel <rui.maciel@gmail.com> - 2011-09-08 14:58 +0100
  Re: How to implement diagnostic messages? BGB <cr88192@hotmail.com> - 2011-09-08 10:57 -0700
    Re: How to implement diagnostic messages? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-08 20:53 +0100
      Re: How to implement diagnostic messages? BGB <cr88192@hotmail.com> - 2011-09-08 14:14 -0700
        Re: How to implement diagnostic messages? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2011-09-09 09:30 +0200
    Re: How to implement diagnostic messages? Rui Maciel <rui.maciel@gmail.com> - 2011-09-11 18:27 +0100
      Re: How to implement diagnostic messages? BGB <cr88192@hotmail.com> - 2011-09-11 11:44 -0700
  Re: How to implement diagnostic messages? Ian Collins <ian-news@hotmail.com> - 2011-09-09 10:33 +1200
    Re: How to implement diagnostic messages? Rui Maciel <rui.maciel@gmail.com> - 2011-09-11 18:33 +0100
  Re: How to implement diagnostic messages? James Waldby <not@valid.invalid> - 2011-09-10 00:17 +0000
    Re: How to implement diagnostic messages? Rui Maciel <rui.maciel@gmail.com> - 2011-09-11 18:41 +0100
      Re: How to implement diagnostic messages? BGB <cr88192@hotmail.com> - 2011-09-11 11:48 -0700
        Re: How to implement diagnostic messages? Ian Collins <ian-news@hotmail.com> - 2011-09-12 08:47 +1200
          Re: How to implement diagnostic messages? BGB <cr88192@hotmail.com> - 2011-09-11 14:56 -0700
            Re: How to implement diagnostic messages? Ian Collins <ian-news@hotmail.com> - 2011-09-12 15:00 +1200

csiph-web