comp.lang.ada
 help / color / mirror / Atom feed
From: xavier grave <xavier.grave@ipno.in2p3.fr>
Subject: Re: Understanding Visibility
Date: Tue, 18 Sep 2012 17:17:10 +0200
Date: 2012-09-18T17:17:10+02:00	[thread overview]
Message-ID: <k3a39m$9ps$1@ccpntc8.in2p3.fr> (raw)
In-Reply-To: <0b087f0c-bc16-4e10-aa8b-0b7281e4b62c@googlegroups.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 18/09/2012 15:47, tonyg a �crit :
> 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.

If communication with log4j (or chainsaw) is an option you can have a
look at log4ada, which is also packaged in Debian.

But it can't log to syslog, except if you have time to provide/code an
appender that enable you to do it :)

xavier grave
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBYkHMACgkQVIZi0A5BZF5pUgCfXwK6uvLWba88QfUKIjy//1ck
nMQAnjIfi7SCUIw2KijxZe64/DJevLh6
=2OlC
-----END PGP SIGNATURE-----



  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
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     ` xavier grave [this message]
2012-09-18  7:52 ` Understanding Visibility 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