Tramway SDK
Namespaces | Enumerations | Functions
logging.h File Reference
#include <framework/core.h>
#include <framework/uid.h>
#include <framework/system.h>
#include <concepts>

Go to the source code of this file.

Namespaces

namespace  tram
 Serialization, i.e.
 
namespace  tram::implementation
 

Enumerations

enum class  tram::Severity {
  tram::INFO , tram::WARNING , tram::ERROR , tram::CRITICAL_ERROR ,
  tram::DEFAULT
}
 

Functions

template<typename T >
void tram::implementation::concat (const T &value)
 
template<>
void tram::implementation::concat (const std::string_view &value)
 
template<>
void tram::implementation::concat (const std::string &value)
 
template<>
void tram::implementation::concat (const char *const &value)
 
template<>
void tram::implementation::concat (const UID &value)
 
template<size_t N>
void tram::implementation::concat (const char(&value)[N])
 
void tram::implementation::concat (const char *value)
 
template<typename T >
void tram::implementation::concat_numeric (const T &value)
 
template<>
void tram::implementation::concat_numeric (const int64_t &value)
 
template<>
void tram::implementation::concat_numeric (const uint64_t &value)
 
template<>
void tram::implementation::concat_numeric (const float &value)
 
void tram::implementation::concat_fmt (std::string_view &str)
 
void tram::implementation::flush_console (Severity severity, System::system_t system)
 
void tram::implementation::flush_display (int time, System::system_t system)
 
void tram::implementation::log (void(*flush)(Severity, System::system_t), Severity severity, System::system_t system, std::string_view &format)
 
template<typename T , typename... Args>
void tram::implementation::log (void(*flush)(Severity, System::system_t), Severity severity, System::system_t system, std::string_view &format, T &value, Args &&... args)
 
void tram::SetSystemLoggingSeverity (System::system_t system, Severity min_severity)
 Sets the logging severity filter. More...
 
void tram::SetDisplayLogCallback (void(int, const char *))
 
void tram::SetConsoleLogCallback (void(int, const char *))
 
template<typename... Args>
void tram::Log (Severity severity, System::system_t system, const std::string_view &format, Args &&... args)
 
template<typename... Args>
void tram::Log (System::system_t system, const std::string_view &format, Args &&... args)
 
template<typename... Args>
void tram::Log (const std::string_view &format, Args &&... args)
 
template<typename... Args>
void tram::DisplayLog (int time, const std::string_view &format, Args &&... args)