From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,41c5dc8789baf2f3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.180.106.199 with SMTP id gw7mr73276wib.0.1348190012388; Thu, 20 Sep 2012 18:13:32 -0700 (PDT) Path: q11ni3492521wiw.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!not-for-mail From: xavier grave Newsgroups: comp.lang.ada Subject: Re: Understanding Visibility Date: Tue, 18 Sep 2012 17:17:10 +0200 Organization: In2p3 Message-ID: References: <5058167c$0$285$14726298@news.sunsite.dk> <0b087f0c-bc16-4e10-aa8b-0b7281e4b62c@googlegroups.com> NNTP-Posting-Host: ipnnarval.in2p3.fr Mime-Version: 1.0 X-Trace: ccpntc8.in2p3.fr 1347981431 10044 134.158.92.7 (18 Sep 2012 15:17:11 GMT) X-Complaints-To: newsmaster@cc.in2p3.fr NNTP-Posting-Date: Tue, 18 Sep 2012 15:17:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 In-Reply-To: <0b087f0c-bc16-4e10-aa8b-0b7281e4b62c@googlegroups.com> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-09-18T17:17:10+02:00 List-Id: -----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-----