22 using namespace basis;
37 FILE *log_to = stdout;
38 if (c_target ==
TO_STDERR) log_to = stderr;
42 fprintf(log_to,
"%s", (
char *)info.
observe());
44 if (
eol() != parser_bits::NO_ENDING) fprintf(log_to,
"%s",
get_ending().s());
Defines the base class for all string processing objects in hoople.
virtual const char * observe() const =0
observes the underlying pointer to the zero-terminated string.
Outcomes describe the state of completion for an operation.
virtual ~console_logger()
virtual basis::outcome log(const basis::base_string &info, int filter)
sends the string "info" to the standard output device.
virtual textual::parser_bits::line_ending eol()
observes how line endings are to be printed.
virtual basis::astring get_ending()
returns a string for the current ending.
virtual bool member(int filter_to_check)
Returns true if the "filter_to_check" is a member of the filter set.
The guards collection helps in testing preconditions and reporting errors.
A logger that sends to the console screen using the standard output device.