Anklang-0.3.0.dev595+g65331842 anklang-0.3.0.dev595+g65331842
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
logging.hh File Reference
#include <ase/cxxaux.hh>
#include <ase/formatter.hh>
#include <source_location>

Go to the source code of this file.

Classes

struct  Ase::LogFormat
 Wrap a string together with its source code location. More...
 

Namespaces

namespace  Ase
 The Anklang C++ API namespace.
 

Enumerations

enum  Logging : int {
  FATAL , ASSERTION , WARN , HINT ,
  INFO , DIAG , TRACE , DEBUGALL
}
 

Functions

template<class... A>
void Ase::printout (const char *format, const A &...args) ASE_PRINTF(1
 
template<class... A>
void void Ase::printerr (const char *format, const A &...args) ASE_PRINTF(1
 
uint64_t Ase::timestamp_now ()
 Current time in µseconds.
 
template<class ... A>
void Ase::fatal_error (const LogFormat &format, const A &...args) ASE_NORETURN
 
template<class ... A>
void Ase::warning (const char *format, const A &...args)
 
template<class ... A>
void Ase::info (const char *format, const A &...args)
 
template<class ... A>
void Ase::diag (const char *format, const A &...args)
 
void Ase::logging_handle_terminate ()
 
template<class ... A>
void Ase::debug (const char *cond, const char *format, const A &...args)
 
bool Ase::debug_enabled ()
 Check if any kind of debugging is enabled by $ASE_DEBUG.
 
bool Ase::debug_key_enabled (const char *conditional) noexcept
 Check if conditional is enabled by $ASE_DEBUG.
 
const charAse::getenv_ase_debug ()
 
void Ase::logging_abort (Logging level, const std::string &message, const char *file, uint32_t line, const char *func) noexcept
 
void Ase::logging (Logging level, const std::string &message, const char *file, uint32_t line, const char *func) noexcept
 
void Ase::logging_debug (const char *cond, const std::string &message) noexcept
 Print a debug/diag message, called from Ase::debug().
 
void Ase::stdio_flush (uint8 code, const String &txt) noexcept
 Handle stdout and stderr printing with flushing.
 
bool Ase::logging_configure (bool to_file, Logging level)
 
template<class ... Args>
void Ase::debug (const char *cond, const char *format, const Args &...args)
 Issue a printf-like debugging message if cond is enabled by $ASE_DEBUG.
 
template<class ... Args>
void Ase::info (const char *format, const Args &...args)
 Issue a printf-like diagnostics message, usually enabled.
 
template<class ... Args>
void Ase::diag (const char *format, const Args &...args)
 Issue a printf-like diagnostics message, usually below verbosity threshold.
 
template<class ... Args>
void Ase::fatal_error (const LogFormat &format, const Args &...args)
 Issue a printf-like message and abort the program.
 
template<class ... Args>
void Ase::warning (const char *format, const Args &...args)
 Warn about unexpected / internal error, usually detached from the cause.
 
template<class... Args>
void Ase::printout (const char *format, const Args &...args)
 Print a message on stdout (and flush stdout) ala printf(), using the POSIX/C locale.
 
template<class... Args>
void Ase::printerr (const char *format, const Args &...args)
 Print a message on stderr (and flush stderr) ala printf(), using the POSIX/C locale.