8 #include "GaudiKernel/INamedInterface.h"
9 #include "GaudiKernel/CommonMessaging.h"
10 #include "GaudiKernel/IMessageSvc.h"
11 #include "GaudiKernel/MsgStream.h"
12 #include "GaudiKernel/CommonMessaging.h"
14 #include "Acts/Utilities/Logger.hpp"
33 std::unique_ptr<Acts::Logging::OutputPrintPolicy>
38 return std::make_unique<ActsAthenaPrintPolicy>(
m_svc,
msg,
name);
46 return m_msg->level() <= athLevel;
55 std::unique_ptr<Acts::Logging::OutputFilterPolicy>
58 auto msg = std::make_shared<MsgStream>(*
m_msg.get());
60 return std::make_unique<ActsAthenaFilterPolicy>(
msg);
63 std::unique_ptr<const Acts::Logger>
66 using namespace Acts::Logging;
68 std::string full_name =
name;
70 full_name = *parent_name +
"." + full_name;
73 auto msg = std::make_shared<MsgStream>(
svc, full_name);
75 auto filter = std::make_unique<ActsAthenaFilterPolicy>(
msg);
76 auto print = std::make_unique<ActsAthenaPrintPolicy>(
svc,
msg, full_name);
77 return std::make_unique<const Acts::Logger>(std::move(
print), std::move(
filter));
80 std::unique_ptr<const Acts::Logger>
84 const INamedInterface *inamed =
dynamic_cast<const INamedInterface*
>(
parent);
85 std::optional<std::string> parent_name = std::nullopt;
87 if (inamed ==
nullptr) {
88 throw std::invalid_argument(
"parent needs to be INamedInterface");
90 parent_name = inamed->name();
94 std::unique_ptr<const Acts::Logger>
98 const INamedInterface *inamed =
dynamic_cast<const INamedInterface*
>(
parent);
99 if (inamed !=
nullptr) {
105 std::unique_ptr<const Acts::Logger>