Go to the documentation of this file.
18 const std::string &message,
106 const std::string &user_input,
110 unsigned v = default_verbosity;
112 if(!user_input.empty())
120 "verbosity value " + user_input +
" out of range, using debug-level (" +
141 const std::function<
void(
mstreamt &)> &output_generator)
const
153 if(this->tellp() > 0)
std::string to_pretty(const structured_datat &data)
Convert the structured_data into plain text.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
const irep_idt & get_function() const
static const commandt reset
return to default formatting, as defined by the terminal
unsigned get_verbosity() const
const irep_idt & get_column() const
static const commandt bright_red
render text with bright red foreground color
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.
static const commandt italic
render italic text
const irep_idt & get_line() const
mstreamt & operator<<(const xmlt &data)
virtual void print(unsigned level, const std::string &message)=0
static const commandt bright_magenta
render text with bright magenta foreground color
static const commandt bright_yellow
render text with bright yellow foreground color
static const commandt green
render text with green foreground color
static const commandt faint
render text with faint font
static const commandt bold
render text with bold font
static const commandt yellow
render text with yellow foreground color
const std::string & id2string(const irep_idt &d)
A way of representing nested key/value data.
void set_verbosity(unsigned _verbosity)
std::vector< std::size_t > message_count
message_handlert * message_handler
static const commandt red
render text with red foreground color
void conditional_output(mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
Generate output to message_stream using output_generator if the configured verbosity is at least as h...
unsigned unsafe_string2unsigned(const std::string &str, int base)
const irep_idt & get_file() const
static const commandt underline
render underlined text
static const commandt cyan
render text with cyan foreground color
static const commandt bright_green
render text with bright green foreground color
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
static const commandt magenta
render text with magenta foreground color
static const commandt bright_cyan
render text with bright cyan foreground color
static const commandt bright_blue
render text with bright blue foreground color
static const commandt blue
render text with blue foreground color