File indexing completed on 2024-11-16 09:01:28
0001
0002
0003
0004 #include "TestACTSLogger.h"
0005
0006
0007
0008 #include "JugBase/IGeoSvc.h"
0009
0010 #include "Acts/Utilities/Logger.hpp"
0011
0012 using namespace Acts;
0013
0014
0015 DECLARE_COMPONENT(TestACTSLogger)
0016
0017 TestACTSLogger::TestACTSLogger(const std::string& aName, ISvcLocator* aSvcLoc)
0018 : GaudiAlgorithm(aName, aSvcLoc) {}
0019
0020 TestACTSLogger::~TestACTSLogger() = default;
0021
0022 StatusCode TestACTSLogger::initialize() {
0023 if (GaudiAlgorithm::initialize().isFailure()) {
0024 return StatusCode::FAILURE;
0025 }
0026 {
0027
0028
0029
0030 ACTS_LOCAL_LOGGER(Acts::getDefaultLogger("TestLoggerInfo", Acts::Logging::INFO));
0031 ACTS_INFO("TESTING INFO LOGGING LEVEL");
0032 ACTS_VERBOSE("TESTING DEBUG LOGGING LEVEL");
0033 ACTS_DEBUG("TESTING VERBOSE LOGGING LEVEL");
0034 }
0035
0036 {
0037
0038
0039
0040 ACTS_LOCAL_LOGGER(Acts::getDefaultLogger("TestLoggerVerbose", Acts::Logging::VERBOSE));
0041 ACTS_INFO("TESTING INFO LOGGING LEVEL");
0042 ACTS_VERBOSE("TESTING DEBUG LOGGING LEVEL");
0043 ACTS_DEBUG("TESTING VERBOSE LOGGING LEVEL");
0044 }
0045
0046 return StatusCode::SUCCESS;
0047 }
0048
0049 StatusCode TestACTSLogger::execute() {
0050 return StatusCode::SUCCESS; }
0051
0052 StatusCode TestACTSLogger::finalize() { return GaudiAlgorithm::finalize(); }