BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/LogIssue.h
Go to the documentation of this file.
1/*
2 * LogIssue.h
3 * ers
4 *
5 * Created by Matthias Wiesmann on 06.01.05.
6 * Copyright 2005 CERN. All rights reserved.
7 *
8 */
9
10#ifndef ERS_LOG_ISSUE
11
12# include "ers/Issue.h"
13
14namespace ers {
15
16 /** This issue is used to encapsulate simple text message like those used for logging
17 * \author Matthias Wiesmann
18 * \version 1.0
19 * \brief Wrapper for log messages.
20 */
21
22 class LogIssue : public Issue {
23 protected:
24 LogIssue( const ers::Context& c, severity_t s );
25
26 public:
27 static const char* const CLASS_NAME;
28 LogIssue();
29 LogIssue( const ers::Context& c, severity_t s, const std::string& message );
30 virtual const char* get_class_name() const throw();
31
32 }; // LogIssue
33} // namespace ers
34
35# define ERS_LOG_ISSUE( s, m ) LogIssue( ERS_HERE, s, m )
36
37#endif
XmlRpcServer s
Source context for Issue.
const std::string & message() const
Message.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
virtual const char * get_class_name() const
Get key for class (used for serialisation).
Definition LogIssue.cxx:30
static const char *const CLASS_NAME
LogIssue(const ers::Context &c, severity_t s)
Definition LogIssue.cxx:23
enum ers::_severity_t severity_t