21 #ifndef H_KARAZEH_LOGGER_H 22 #define H_KARAZEH_LOGGER_H 27 #include "karazeh_export.h" 32 using std::ostringstream;
58 static void set_threshold(
char level);
63 static void set_stream(std::ostream*);
69 static void enable_timestamps(
bool on_or_off);
72 static void set_app_name(
string_t const& app_name);
75 static void deindent();
101 void set_uuid_prefix(
string_t const&);
104 string_t const& uuid_prefix()
const;
107 void rename_context(
string_t const&);
110 ostream& log(
char lvl)
const;
113 static ostringstream sink;
115 static bool with_timestamps;
116 static bool with_app_name;
117 static bool silenced;
119 static int indent_level;
std::string string_t
Definition: karazeh.hpp:55
Definition: config.hpp:32
std::ostream & s
Definition: logger.hpp:128
Definition: logger.hpp:35
Definition: config.hpp:27
Definition: logger.hpp:124
logstream & operator<<(T const &data)
Definition: logger.hpp:131