comp.lang.ada
 help / color / mirror / Atom feed
From: tonyg <tonythegair@gmail.com>
Subject: Re: Understanding Visibility
Date: Tue, 18 Sep 2012 07:00:09 -0700 (PDT)
Date: 2012-09-18T07:00:09-07:00	[thread overview]
Message-ID: <7b7354a3-9514-4c89-bbdd-d2409a7c9d2d@googlegroups.com> (raw)
In-Reply-To: <0b087f0c-bc16-4e10-aa8b-0b7281e4b62c@googlegroups.com>

On Tuesday, 18 September 2012 14:47:03 UTC+1, tonyg  wrote:
> On Tuesday, 18 September 2012 07:36:45 UTC+1, Thomas Løcke  wrote:
> 
> > 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
> 
> 
> 
> I noticed that alog has debian wheezy packages supported \o/ so I am taking a good long look at that rather than gnatcoll which needs to be installed from source. Its looking good so far.

Did you know that alog can also post to syslog?



  reply	other threads:[~2012-09-18 14:00 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
2012-09-18 13:47   ` tonyg
2012-09-18 14:00     ` tonyg [this message]
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