#include <flecsi-config.h>
#include "flecsi/log/state.hh"
#include "flecsi/log/types.hh"
#include "flecsi/log/utils.hh"
#include <iostream>
Go to the source code of this file.
Classes | |
struct | flecsi::log::log_message_t |
Namespaces | |
flecsi | |
Macros | |
#define | severity_message_t(severity, format) |
#define | verbose_stamp timestamp() << " " << rstrip<'/'>(file_) << ":" << line_ << " " |
#define | process_stamp " p" << flog_t::instance().process() |
Functions | |
bool | flecsi::log::true_state () |
flecsi::log::severity_message_t (utility, {(void) devel_;std::ostream &stream=flog_t::instance().severity_stream(flog_t::instance().tag_enabled());return stream;}) | |
flecsi::log::severity_message_t (trace, { std::ostream &stream=flog_t::instance().severity_stream(FLOG_STRIP_LEVEL< 1 &&flog_t::instance().tag_enabled());std::string devel=devel_ ? "(devel)" :"";std::string active_tag=flog_t::instance().initialized() ? flog_t::instance().active_tag_name() :"external";switch(flog_t::instance().verbose()) { case 1:{ stream<< FLOG_OUTPUT_CYAN("[trace ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_LTGRAY(verbose_stamp);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_CYAN("] ");} break;case 0:{ stream<< FLOG_OUTPUT_CYAN("[trace ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_CYAN("] ");} break;default:break;} return stream;}) | |
flecsi::log::severity_message_t (info, { std::ostream &stream=flog_t::instance().severity_stream(FLOG_STRIP_LEVEL< 2 &&flog_t::instance().tag_enabled());std::string devel=devel_ ? "devel " :"";std::string active_tag=flog_t::instance().initialized() ? flog_t::instance().active_tag_name() :"external";switch(flog_t::instance().verbose()) { case 1:{ stream<< FLOG_OUTPUT_GREEN("[info ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_LTGRAY(verbose_stamp);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_GREEN("] ");} break;case 0:{ stream<< FLOG_OUTPUT_GREEN("[info ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_GREEN("] ");} break;default:break;} return stream;}) | |
flecsi::log::severity_message_t (warn, { std::ostream &stream=flog_t::instance().severity_stream(FLOG_STRIP_LEVEL< 3 &&flog_t::instance().tag_enabled());std::string devel=devel_ ? "(devel)" :"";std::string active_tag=flog_t::instance().initialized() ? flog_t::instance().active_tag_name() :"external";switch(flog_t::instance().verbose()) { case 1:{ stream<< FLOG_OUTPUT_BROWN("[Warn ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_LTGRAY(verbose_stamp);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_BROWN("] ")<< FLOG_COLOR_YELLOW;} break;case 0:{ stream<< FLOG_OUTPUT_BROWN("[Warn ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_BROWN("] ")<< FLOG_COLOR_YELLOW;} break;default:break;} clean_color_=true;return stream;}) | |
flecsi::log::severity_message_t (error, { std::ostream &stream=flog_t::instance().severity_stream(FLOG_STRIP_LEVEL< 4 &&flog_t::instance().tag_enabled());std::string devel=devel_ ? "(devel)" :"";std::string active_tag=flog_t::instance().initialized() ? flog_t::instance().active_tag_name() :"external";switch(flog_t::instance().verbose()) { case 1:{ stream<< FLOG_OUTPUT_RED("[ERROR ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_LTGRAY(verbose_stamp);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_RED("] ")<< FLOG_COLOR_LTRED;} break;case 0:{ stream<< FLOG_OUTPUT_RED("[ERROR ")<< FLOG_OUTPUT_PURPLE(devel);stream<< FLOG_OUTPUT_CYAN(active_tag);stream<< FLOG_OUTPUT_GREEN(process_stamp);stream<< FLOG_OUTPUT_RED("] ")<< FLOG_COLOR_LTRED;} break;default:break;} clean_color_=true;return stream;}) | |
#define severity_message_t | ( | severity, | |
format | |||
) |
|
inline |
Function always returning true. Used for defaults.