Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::log Namespace Reference

Classes

struct  error
struct  info
struct  message
struct  warn

Functions

template<typename... Args>
 error (fmt::format_string< Args... >, Args &&...) -> error< Args... >
void exception (const Exception &e)
template<typename... Args>
void exception (const Exception &e, fmt::format_string< Args... > format, Args &&... args)
void exception (const std::exception &e, SourceContext context=std::source_location::current())
void exception (SourceContext context=std::source_location::current())
void exception (std::string_view message, SourceContext context=std::source_location::current())
template<typename... Args>
 info (fmt::format_string< Args... >, Args &&...) -> info< Args... >
template<typename... Args>
 message (Logger &logger, LogLevel level, fmt::format_string< Args... >, Args &&...) -> message< Args... >
template<typename... Args>
 message (LogLevel level, fmt::format_string< Args... >, Args &&...) -> message< Args... >
template<typename... Args>
void report (Logger &logger, LogLevel level, SourceContext context, fmt::format_string< Args... > format, Args &&... args)
void report (Logger &logger, LogLevel level, SourceContext context, std::string_view message)
void report (Logger &logger, LogLevel level, std::string_view message, SourceContext context=std::source_location::current())
template<typename... Args>
void report (LogLevel level, SourceContext context, fmt::format_string< Args... > format, Args &&... args)
void report (LogLevel level, SourceContext context, std::string_view message)
void report (LogLevel level, std::string_view message, SourceContext context=std::source_location::current())
template<typename... Args>
 warn (fmt::format_string< Args... >, Args &&...) -> warn< Args... >

Detailed Description

All log functions either take an explicit SourceContext argument, or automatically extract one from the call site. All functions that take a fmt::format_string do compile time format checks.

Basic logging

  • info(fmt::format_string<Args...>, Args&&...)
  • warn(fmt::format_string<Args...>, Args&&...)
  • error(fmt::format_string<Args...>, Args&&...)

Runtime Log Level

  • report(LogLevel, SourceContext, fmt::format_string, Args&&...)
  • report(LogLevel, SourceContext, std::string_view)
  • report(LogLevel, std::string_view)
  • message(LogLevel level, fmt::format_string<Args...>, Args&&...)

Log Exceptions

  • exception(const Exception&)
  • exception(const std::exception&)
  • exception(std::string_view)
  • exception()

Log to a custom logger