File indexing completed on 2025-01-30 10:30:26
0001
0002
0003
0004 #include "JugTrack/ACTSLogger.h"
0005 #include "GaudiKernel/IMessageSvc.h"
0006 #include "GaudiKernel/IMessageSvc.h"
0007 #include "GaudiKernel/MsgStream.h"
0008
0009 namespace Acts {
0010 std::unique_ptr<const Logger> getDefaultLogger(const std::string& name, const Logging::Level& lvl, std::ostream* ) {
0011 using namespace Logging;
0012 ServiceHandle<IMessageSvc> msgSvc("MessageSvc", name);
0013 msgSvc->setOutputLevel(lvl + 1);
0014 auto printPol = std::make_unique<GaudiPrintPolicy>(&(*msgSvc));
0015 printPol->setName(name);
0016 return std::make_unique<Acts::Logger>(std::move(printPol),
0017 std::make_unique<GaudiFilterPolicy>(&(*msgSvc), lvl));
0018 }
0019 }