6#ifndef WREPORT_PRINTF_ATTRS
7#define WREPORT_PRINTF_ATTRS(a, b) __attribute__((format(printf, a, b)))
30std::ostream&
log() throw();
33void logf(const
char* fmt, ...) WREPORT_PRINTF_ATTRS(1, 2);
std::ostream & log()
Output stream to send notes to.
std::ostream * get_target()
Get the current target stream for notes.
void set_target(std::ostream &out)
Set the target stream where the notes are sent.
void logf(const char *fmt,...) WREPORT_PRINTF_ATTRS(1
printf-style logging
bool logs()
Return true if there is any target to which notes are sent.
String functions.
Definition benchmark.h:13
RAII way to temporarily set a notes target.
Definition notes.h:42
std::ostream * old
Old target stream to be restored whemn the object goes out of scope.
Definition notes.h:46
Collect(std::ostream &out)
Direct notes to out for the lifetime of the object.
Definition notes.h:49