comp.lang.ada
 help / color / mirror / Atom feed
From: "Thomas Løcke" <thomas@12boo.net>
Subject: Re: Understanding Visibility
Date: Tue, 18 Sep 2012 08:36:44 +0200
Date: 2012-09-18T08:36:44+02:00	[thread overview]
Message-ID: <5058167c$0$285$14726298@news.sunsite.dk> (raw)
In-Reply-To: <f64b145d-f2ad-470d-a6fb-dd3d666d481e@googlegroups.com>

On 09/17/2012 10:42 PM, tonyg wrote:
>
> I needed to log some stuff from several tasks in one program. So I wrote a little logging package. I used a package containing several text_io.file_types followed by a protected object to make sure the file operations were not interfered with.
>      However when things were passed through to inside the protected object I found that the file was not taking the information being passed to it. Can anyone explain this to me, as I think the file should be visible.
>


You could take a peek at how they solved the problem in the GNATCOLL
package, specifically the Traces part:

http://docs.adacore.com/gnatcoll-docs/traces.html

It works flawlessly, or rather I've not been able to trash it yet. :D

Another option is Alog from codelabs:  http://www.codelabs.ch/alog/

And a third one is grabbing AWS and look at their AWS.Log package.

Lots of good stuff to learn from.

Personally I use GNATCOLL.Traces for most of my logging needs, as it
can log to syslogd, which I find very handy.

-- 
Thomas L�cke | thomas@12boo.net | http://12boo.net



  parent reply	other threads:[~2012-09-21  1:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 20:42 Understanding Visibility tonyg
2012-09-17 21:19 ` Dmitry A. Kazakov
2012-09-18  6:36 ` Thomas Løcke [this message]
2012-09-18 13:47   ` tonyg
2012-09-18 14:00     ` tonyg
2012-09-18 14:36       ` Thomas Løcke
2012-09-19  1:32       ` netiquette Stephen Leake
2012-09-18 15:17     ` Understanding Visibility xavier grave
2012-09-18  7:52 ` tonyg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox