Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions | Variables
logging.hh File Reference
#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  Ase::LogFlags { LOG_FILE , LOG_STDERR , LOG_LOCATIONS }
 Flags to configure logging behaviour. More...
 

Functions

uint64_t Ase::timestamp_now ()
 Current time in µseconds.
 
template<class... A>
void Ase::log (const LogFormat &format, const A &...args)
 Write a log message to the log file (or possibly stderr), using the POSIX/C locale.
 
LogFlags Ase::log_setup (int *logfd)
 Configurable handler to open log files.
 
void Ase::logmsg (const std::string &msg, const char *const filename, const uint64_t columnline, const char *const function_name)
 

Variables

uint64_t Ase::columnline
 
uint64_t const charAse::func
 
uint64_t const char const charAse::format