Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
log.h File Reference
#include <atomic>
#include <chrono>
#include <concepts>
#include <cstdint>
#include <format>
#include <memory>
#include <mutex>
#include <source_location>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>
#include <vector>
#include "core/aliases.h"
#include "core/singleton.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bicameral::LogRecord
class  bicameral::LogSink
class  bicameral::Logger
struct  bicameral::FormatWithLocation< Args >

Namespaces

namespace  bicameral

Enumerations

enum class  bicameral::Channel : uint8_t {
  bicameral::Core , bicameral::Platform , bicameral::Gpu , bicameral::WorkGraph ,
  bicameral::Sim , bicameral::Reaction , bicameral::Physics , bicameral::Render ,
  bicameral::Audio , bicameral::Tool , bicameral::Count
}
enum class  bicameral::Level : uint8_t {
  bicameral::Trace , bicameral::Debug , bicameral::Info , bicameral::Warning ,
  bicameral::Error , bicameral::Fatal
}

Functions

std::string_view bicameral::ChannelName (Channel channel)
std::string_view bicameral::LevelName (Level level)
char bicameral::LevelLetter (Level level)
bool bicameral::ParseLevel (std::string_view text, Level &level)
std::string bicameral::FormatLogLine (const LogRecord &record, bool withLocation)
std::string_view bicameral::FileNameOnly (std::string_view path)
Logger & bicameral::GetLogger ()
template<typename... Args>
void bicameral::Log (Channel channel, Level level, FormatWithLocation< std::type_identity_t< Args >... > pattern, Args &&... args)