Dear Jiri, Thank you. Printf is used inside the TMiniut class for the logging. I want to redirect the log. In the source file of TMinuit.cxx, the possibility of the redirection is described as below. *-* - The ROOT static function Printf is provided to replace all * *-* format statements and to print on currently defined output file.* Anyway, I checked the TString.cxx. Inside the function of Printf(..), printf(..) is used. Now I also think the redireciton is impossible. ( The cout could be replaced by a fstream, but I am not sure for the case of stdout for the printf.) Best regards, Hajime > > Hi Hajime, > > see base/src/TString.cxx for the implementation of Printf. I think it > cannot be redirected in an interactive session. You can use iostream > operators in combination with Form {cout << Form("aa%d",1) << endl;} > or with stringstream. > cheers > > Jiri > Hajime Nanjyo <nanjyo@icepp.s.u-tokyo.ac.jp> writes: > > > Dear Rooters, > > > > I used the ROOT static function Printf and wanted > > to redirect the output of Printf from the stdout to > > a file(i.e. to a fstream). Could you tell me how? > > > > By the way,which source code the implimentaion > > of Printf is writen? > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET