Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
log.cpp File Reference
#include "core/log.h"
#include <array>
#include <iterator>
#include "core/aliases.h"
#include "core/log_sinks.h"
Include dependency graph for log.cpp:

Go to the source code of this file.

Namespaces

namespace  bicameral
namespace  bicameral::anonymous_namespace{log.cpp}

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_view bicameral::FileNameOnly (std::string_view path)
std::string bicameral::FormatLogLine (const LogRecord &record, bool withLocation)

Variables

constexpr std::array< std::string_view, static_cast< size_t >(Channel::Count)> bicameral::anonymous_namespace{log.cpp}::CHANNEL_NAMES
constexpr std::array< std::string_view, 6 > bicameral::anonymous_namespace{log.cpp}::LEVEL_NAMES
constexpr std::string_view bicameral::anonymous_namespace{log.cpp}::LEVEL_LETTERS = "TDIWEF"
constexpr Level bicameral::anonymous_namespace{log.cpp}::DEFAULT_MIN_LEVEL = Level::Debug