#include "Acts/Utilities/Logger.hpp"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/CommonMessaging.h"
#include "GaudiKernel/INamedInterface.h"
#include <memory>
#include <optional>
Go to the source code of this file.
◆ makeActsAthenaLogger() [1/4]
std::unique_ptr<const Acts::Logger> makeActsAthenaLogger |
( |
const CommonMessagingBase * |
parent, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 81 of file Tracking/Acts/ActsInterop/src/Logger.cxx.
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();
◆ makeActsAthenaLogger() [2/4]
std::unique_ptr<const Acts::Logger> makeActsAthenaLogger |
( |
const CommonMessagingBase * |
parent, |
|
|
const std::string & |
name, |
|
|
const std::string & |
parent_name |
|
) |
| |
◆ makeActsAthenaLogger() [3/4]
std::unique_ptr<const Acts::Logger> makeActsAthenaLogger |
( |
const CommonMessagingBase * |
parent, |
|
|
const std::string & |
name, |
|
|
std::optional< std::string > |
parent_name |
|
) |
| |
◆ makeActsAthenaLogger() [4/4]
std::unique_ptr<const Acts::Logger> makeActsAthenaLogger |
( |
IMessageSvc * |
svc, |
|
|
const std::string & |
name, |
|
|
int |
level, |
|
|
std::optional< std::string > |
parent_name |
|
) |
| |
Definition at line 64 of file Tracking/Acts/ActsInterop/src/Logger.cxx.
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));