<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I was being stupid and expecting all of the error messages to be redirected to the screen, as was the case when I was testing with Pythia8. </div><div>In fact, all of the debug and error messages were being safely stored in Herwig's .log file.</div><div><br></div><div>Thanks for the tip about MSG_X("...").</div><div><br></div><div>Sorry for wasting your time.</div><div><br></div><div>Kiran</div><div><br></div><div> <br><div><div>On 24 Mar 2011, at 13:28, Andy Buckley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 24/03/11 12:17, Kiran Joshi wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've having trouble getting any logging/debug messages out of Rivet when running it through Herwig++.<br></blockquote><blockquote type="cite">I've included the following lines in my Rivet analysis:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">void analyze(const Event& event) {<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>...<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Log& log = Log::getLog("Rivet.Analysis.MY_TEST_ANALYSIS");<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>log << Log::ERROR << "This is a test error message." << endl;<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>...<br></blockquote><blockquote type="cite">}<br></blockquote><br>All I can say is that it's much better (for several reasons) to just write<br><br>MSG_ERROR("This is a test error message.");<br><br>and you should never need to explicitly call<br>getLog("my.log.hierarchy")... Analysis::getLog() will put the name in<br>automatically.<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><blockquote type="cite"><div><blockquote type="cite">and in my Herwig++ input file, I've done:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">set /Herwig/Analysis/RivetAnalysis:Debug Yes<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But I still don't see any messages when I run the analysis.<br></blockquote><br>I don't know anything about how Herwig++ is interfacing Rivet... David,<br>can you help?<br><br>Andy<br><br>-- <br>Dr Andy Buckley<br>SUPA Advanced Research Fellow<br>Particle Physics Experiment Group, University of Edinburgh<br><br>The University of Edinburgh is a charitable body, registered in<br>Scotland, with registration number SC005336.<br><br></div></blockquote></div><br></div></body></html>