Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
bicameral::anonymous_namespace{log_sinks.cpp} Namespace Reference

Classes

class  ConsoleSink
class  DebuggerSink
class  FileSink

Functions

std::string_view ColorOf (Level level)
std::string DescribeErrorCode (const std::error_code &error)
std::tm LocalNow ()
bool IsLogFileName (const fs::path &path)
void RemoveOldLogFiles (const fs::path &directory)

Variables

constexpr size_t MAX_LOG_FILES = 20
constexpr std::wstring_view LOG_FILE_PREFIX = L"bicameral-"
constexpr std::wstring_view LOG_FILE_EXTENSION = L".log"

Function Documentation

◆ ColorOf()

std::string_view bicameral::anonymous_namespace{log_sinks.cpp}::ColorOf ( Level level)

Definition at line 31 of file log_sinks.cpp.

References ColorOf(), bicameral::Debug, bicameral::Error, bicameral::Fatal, bicameral::Trace, and bicameral::Warning.

Referenced by ColorOf(), and bicameral::anonymous_namespace{log_sinks.cpp}::ConsoleSink::Write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DescribeErrorCode()

std::string bicameral::anonymous_namespace{log_sinks.cpp}::DescribeErrorCode ( const std::error_code & error)

Definition at line 120 of file log_sinks.cpp.

References DescribeErrorCode(), and bicameral::DescribeHresult().

Referenced by DescribeErrorCode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsLogFileName()

bool bicameral::anonymous_namespace{log_sinks.cpp}::IsLogFileName ( const fs::path & path)

Definition at line 134 of file log_sinks.cpp.

References IsLogFileName(), LOG_FILE_EXTENSION, and LOG_FILE_PREFIX.

Referenced by IsLogFileName(), and RemoveOldLogFiles().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LocalNow()

std::tm bicameral::anonymous_namespace{log_sinks.cpp}::LocalNow ( )

Definition at line 126 of file log_sinks.cpp.

References LocalNow().

Referenced by LocalNow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveOldLogFiles()

void bicameral::anonymous_namespace{log_sinks.cpp}::RemoveOldLogFiles ( const fs::path & directory)

Definition at line 141 of file log_sinks.cpp.

References IsLogFileName(), MAX_LOG_FILES, and RemoveOldLogFiles().

Referenced by RemoveOldLogFiles().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ LOG_FILE_EXTENSION

std::wstring_view bicameral::anonymous_namespace{log_sinks.cpp}::LOG_FILE_EXTENSION = L".log"
constexpr

Definition at line 26 of file log_sinks.cpp.

Referenced by IsLogFileName().

◆ LOG_FILE_PREFIX

std::wstring_view bicameral::anonymous_namespace{log_sinks.cpp}::LOG_FILE_PREFIX = L"bicameral-"
constexpr

Definition at line 25 of file log_sinks.cpp.

Referenced by IsLogFileName().

◆ MAX_LOG_FILES

size_t bicameral::anonymous_namespace{log_sinks.cpp}::MAX_LOG_FILES = 20
constexpr

Definition at line 24 of file log_sinks.cpp.

Referenced by RemoveOldLogFiles().