ATLAS Offline Software
Loading...
Searching...
No Matches
DbPrint.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef STORAGESVC_DBPRINT_H
5#define STORAGESVC_DBPRINT_H 1
6
8
9#include <atomic>
10
11struct DbPrintLvl {
12 static std::atomic<MSG::Level> outputLvl;
13 inline static void setLevel( MSG::Level l ) { outputLvl.store(l); }
14 inline static MSG::Level getLevel( const std::string& name );
15};
16
17
18class DbPrint : public MsgStream {
19 public:
20 DbPrint( const std::string& name );
21
22 // return the configured output level
23 static MSG::Level getOutputLvl();
24
25 // read the output level from environment
26 static MSG::Level getOutputLvlFromEnv();
27
28 static MsgStream& endmsg( MsgStream& s ) { return ::endmsg(s); }
29};
30
31
33class APRMessaging : public AthMessaging {
34 public:
35 APRMessaging(const std::string& name);
36
37 APRMessaging(const APRMessaging&) = delete;
41};
42
43#endif
APRMessaging(APRMessaging &&)=delete
APRMessaging(const APRMessaging &)=delete
APRMessaging(const std::string &name)
APRMessaging & operator=(APRMessaging &&)=delete
APRMessaging & operator=(const APRMessaging &)=delete
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
static MSG::Level getOutputLvlFromEnv()
static MsgStream & endmsg(MsgStream &s)
Definition DbPrint.h:28
static MSG::Level getOutputLvl()
DbPrint(const std::string &name)
static void setLevel(MSG::Level l)
Definition DbPrint.h:13
static std::atomic< MSG::Level > outputLvl
Definition DbPrint.h:12
static MSG::Level getLevel(const std::string &name)