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

Functions

IVW_CORE_API void logDirectly (LogLevel level, SourceContext context, std::string_view message)
 
void report (LogLevel level, SourceContext context, fmt::string_view format, fmt::format_args &&args)
 
void report (Logger &logger, LogLevel level, SourceContext context, fmt::string_view format, fmt::format_args &&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

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