Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-20 07:06:24

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022 Whitney Armstrong
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* /* unused */) {
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 }