ATLAS Offline Software
Loading...
Searching...
No Matches
ILoggedMessageSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAKERNEL_ILOGGEDMESSAGESVC_H
6#define ATHENAKERNEL_ILOGGEDMESSAGESVC_H 1
7
8// Include files
9#include "GaudiKernel/IMessageSvc.h"
10#include <string>
11#include <vector>
12#include <functional>
13
14
21class ILoggedMessageSvc : virtual public IMessageSvc {
22public:
23
26
28 int level;
29 std::string source;
30 std::string message;
31
32 LoggedMessage(int l, const std::string& s, const std::string& m):
33 level(l),source(s),message(m){};
34 };
35
36
37 virtual std::vector<std::pair<std::string, std::string> > getMessages( MSG::Level ) const = 0;
38 virtual std::vector< LoggedMessage > getKeyMessages() const = 0;
39
40 virtual ~ILoggedMessageSvc();
41
42
43};
44
45#endif // ATHENAKERNEL_ILOGGEDMESSAGESVC_H
Extends IMessageSvc to get logged messages.
virtual std::vector< std::pair< std::string, std::string > > getMessages(MSG::Level) const =0
virtual std::vector< LoggedMessage > getKeyMessages() const =0
DeclareInterfaceID(ILoggedMessageSvc, 1, 1)
Declare interface ID.
LoggedMessage(int l, const std::string &s, const std::string &m)