DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
logging
include
logging
tmp.hpp
Go to the documentation of this file.
1
namespace
dunedaq::logging
{
class
Logging::InternalMessage
:
public
ers::Issue
{
template
<
class
>
friend
class
ers::IssueRegistrator
;
protected
:
public
:
static
const
char
*
get_uid
() {
return
"dunedaq::logging::Logging::InternalMessage"
; }
Logging::InternalMessage
(
const
ers::Context
&
context
);
Logging::InternalMessage
(
const
ers::Context
&
context
,
const
std::string & msg );
Logging::InternalMessage
(
const
ers::Context
&
context
,
const
std::string & msg ,
const
std::exception &
cause
);
Logging::InternalMessage
(
const
ers::Context
&
context
,
const
std::exception &
cause
);
void
raise
()
const
{
throw
Logging::InternalMessage
(*
this
); }
const
char
*
get_class_name
()
const
{
return
get_uid
(); }
ers::Issue
*
clone
()
const
{
return
new
dunedaq::logging::Logging::InternalMessage
( *
this
); } }; }
namespace
dunedaq::logging
{
inline
Logging::InternalMessage::Logging::InternalMessage(
const
ers::Context
& context ) :
ers
::
Issue
( context ) { }
inline
Logging::InternalMessage::Logging::InternalMessage(
const
ers::Context
& context,
const
std::string & msg ) :
ers
::
Issue
( context, msg ) { }
inline
Logging::InternalMessage::Logging::InternalMessage(
const
ers::Context
& context,
const
std::string & msg ,
const
std::exception & cause ) :
ers
::
Issue
( context, msg , cause ) { }
inline
Logging::InternalMessage::Logging::InternalMessage(
const
ers::Context
& context ,
const
std::exception & cause ) :
ers
::
Issue
( context , cause ) { } }
namespace
{ ers::IssueRegistrator<dunedaq::logging::Logging::InternalMessage> dunedaq::logging_Logging::InternalMessage_instance; }
static
inline
TraceStreamer&
operator<<
(TraceStreamer& x,
const
dunedaq::logging::Logging::InternalMessage &r) {
if
(x.do_m) { x.line_=
r
.context().line_number(); x.msg_append(
r
.message().c_str() ); }
if
(x.do_s) {
if
(x.lvl_==TLVL_INFO)
ers::info
( r );
else
if
(x.lvl_==TLVL_LOG)
ers::log
( r );
else
ers::debug
( r, x.lvl_-TLVL_DEBUG ); x.do_s = 0; }
return
x; }
2
dunedaq::logging::Logging::InternalMessage
Definition
tmp.hpp:1
dunedaq::logging::Logging::InternalMessage::raise
void raise() const
throws a copy of this issue preserving the real issue type
Definition
tmp.hpp:1
dunedaq::logging::Logging::InternalMessage::get_uid
static const char * get_uid()
Definition
tmp.hpp:1
dunedaq::logging::Logging::InternalMessage::clone
ers::Issue * clone() const
Definition
tmp.hpp:1
dunedaq::logging::Logging::InternalMessage::get_class_name
const char * get_class_name() const
Get key for class (used for serialisation).
Definition
tmp.hpp:1
ers::Context
An abstract interface to access an Issue context.
Definition
Context.hpp:41
ers::IssueRegistrator
Definition
Issue.hpp:58
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:80
ers::Issue::context
const Context & context() const
Context of the issue.
Definition
Issue.hpp:111
ers::Issue::cause
const Issue * cause() const
return the cause Issue of this Issue
Definition
Issue.hpp:108
dunedaq::logging
Definition
Logging.hpp:19
dunedaq::Issue
CIB Buffer Issue
Definition
CIBModuleIssues.hpp:26
dunedaq::operator<<
std::ostream & operator<<(std::ostream &s, const ConfigurationChange &c)
Definition
Configuration.cpp:1821
ers
Definition
Logger.hxx:202
ers::info
void info(const Issue &issue)
Definition
ers.hpp:106
ers::log
void log(const Issue &issue)
Definition
ers.hpp:113
ers::debug
void debug(const Issue &issue, int level=debug_level())
Definition
ers.hpp:85
send-recv-restcmd.r
r
Definition
send-recv-restcmd.py:120
Generated on
for DUNE-DAQ by
1.17.0