31 Message(
const char* src,
int type,
const char* msg );
34 Message( std::string src,
int type, std::string msg );
71 void setFormat( std::string msg )
const;
80 void setTimeFormat( std::string timeFormat )
const;
93 void invalidFormat()
const;
96 void makeFormattedMsg(
const std::string&
format )
const;
99 void decodeFormat(
const std::string&
format )
const;
102 void sizeField(
const std::string& text,
bool middle =
false )
const;
105 void setWidth(
const std::string& formatArg )
const;
std::ostream & operator<<(std::ostream &s, AlgsExecutionStates::State x)
Streaming of State values.
bool operator==(const GaudiUtils::Allocator< T1 > &, const GaudiUtils::Allocator< T2 > &)
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
bool operator<(backwards_compatibility_hack_time_timespan, backwards_compatibility_hack_time_timespan)
static constexpr ContextEvt_t INVALID_CONTEXT_EVT
static constexpr ContextID_t INVALID_CONTEXT_ID
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
~Message()=default
Default destructor.
static const char SLOT
The character used to indicate that the slot number should be printed.
const std::string & getMessage() const
Get the message string.
std::string m_message
The message text.
static const std::string getDefaultTimeFormat()
Get the default time format string.
static constexpr const char * DEFAULT_FORMAT
The default message format.
std::string m_formatted_msg
Formatted message.
bool m_left
The message alignment.
EventIDBase m_ecEvtId
Full event ID.
int m_width
Current field width.
EventContext::ContextEvt_t getEventNumber() const
static const std::string getDefaultFormat()
Get the default format string.
void setSource(std::string_view src)
Set the message source.
Message()=default
Default constructor.
EventContext::ContextID_t m_ecSlot
Event slot.
const std::string & getFormat() const
Get the format string.
static const char THREAD
The character used to indicate that the thread ID should be printed.
int m_type
The message type/level.
static const char UTIME
The character used to indicate that the message timestamp should be printed in UTC time.
static const char EVTNUM
The character used to indicate that the event number should be printed.
std::string m_source
The message source.
const std::string & getSource() const
Get the message source.
static const char SOURCE
The character used to indicate that the message source should be printed.
void setMessage(std::string msg)
Set the message string.
static const char COMP
The character used to indicate that the message source should be printed, focus on the component.
const EventIDBase & getEventID() const
int getType() const
Get the message type.
static const char TIME
The character used to indicate that the message timestamp should be printed.
static const char JUSTIFY_LEFT
The character used to indicate start of left text justification.
static const char EVENTID
The character used to indicate that the full event ID should be printed.
static const char FORMAT_PREFIX
The character used to prefix formatting commands.
void setType(int msg_type)
Set the message type.
static const char WIDTH
The character used to indicate that the previous decimal characters should be taken as the field widt...
static const char TYPE
The character used to indicate that the message type should be printed.
std::string m_time_format
Time format string.
pthread_t m_ecThrd
Thread ID.
static const char JUSTIFY_RIGHT
The character used to indicate start of right text justification.
static constexpr const char * DEFAULT_TIME_FORMAT
The default time format (accepts strftime formatters plus %f for milliseconds).
char m_fill
Current fill character.
EventContext::ContextEvt_t m_ecEvt
Event number.
static const char FILL
The character used to indicate that the previous character is used to pad fields if the text is not l...
std::string m_format
The format string.
EventContext::ContextID_t getEventSlot() const
const std::string & getTimeFormat() const
Get the time format string.
static const char MESSAGE
The character used to indicate that the message should be printed.