Message: Can G4cout write to screen and file simultaneously? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Can G4cout write to screen and file simultaneously? 

Keywords: G4cout output stream redirection file screen buffer
Forum: Event and Track Management
Date: 25 May, 2005
From: Blair Smith <bmsmith@lsu.edu>

Please forgive me,

I'm a newbie, and did not know which topic to post this basic question to.

I read in the Geant4 User Guide that output from G4cout can be redirected to a file. But I find it useful to have output dumped to screen as well, if only to see the messages just before my application halts or enters UI shell mode.

Can someone advize on how to setup the G4cout stream to log messages to both screen and file wihout doubling up the lines of output code.

Thanks.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Can G4cout write to screen and file simultaneously?   (Tore Ersmark - 25 May, 2005)
 Add Message Add Message
to: "Can G4cout write to screen and file simultaneously?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]