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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,53ff35f061735632 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-05 08:58:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Redirecting Standard Error... Date: 05 Aug 2002 11:41:53 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D4B5C18.9050701@cox.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1028562625 10081 128.183.220.71 (5 Aug 2002 15:50:25 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 5 Aug 2002 15:50:25 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:27707 Date: 2002-08-05T15:50:25+00:00 List-Id: "John M. Resler" writes: > I have written an asis application that generates a lot of messages to > standard error that are not pertinent to my application but > nonetheless unsightly. I have attempted to redirect standard_error > with the following lines to a log file and receive no exceptions but > the asis initialization, association and open procedures continue to > generate the standard_error output. Can anyone tell me over and above > what I am doing, how I might get around this? It may be that ASIS is using Ada.Text_IO for standard error, rather than Ada.Wide_Text_IO; I have not checked. > > > -- code here for testing if file exists already, etc. -- > redirect standard_error Ada.Wide_Text_IO.Open( File => > Warnings_File, Mode => Ada.Wide_Text_IO.Append_File, Name => > "asis_warnings.txt" ); > > Ada.Wide_Text_IO.Set_Error( File => Warnings_File ); > > -- initialize the asis environment > Asis.Implementation.Initialize; > Asis.Ada_Environments.Associate ( The_Context, "The_Context", "-CA"); > Asis.Ada_Environments.Open ( The_Context ); > -- -- Stephe