1 #ifndef CONSOLE_LOGGER_CLASS
2 #define CONSOLE_LOGGER_CLASS
69 #define SETUP_CONSOLE_LOGGER { \
70 loggers::standard_log_base *old_log = loggers::program_wide_logger::set \
71 (new loggers::console_logger); \
Defines the base class for all string processing objects in hoople.
Outcomes describe the state of completion for an operation.
virtual ~console_logger()
bool to_standard_output() const
reports if the logger goes to standard output (default).
virtual basis::outcome log(const basis::base_string &info, int filter)
sends the string "info" to the standard output device.
bool to_standard_error() const
reports if the logger goes to standard error instead.
console_logger(stream_choices log_target=TO_STDOUT)
if "standard_error" is true, than stderr is used instead of stdout.
DEFINE_CLASS_NAME("console_logger")
void set_output(stream_choices target)
enables the target of logging to be changed after construction.
A base class for a very usable logger with a filter_set and eol awareness.
A logger that sends to the console screen using the standard output device.