|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
#include "core/log_sinks.h"#include <windows.h>#include <algorithm>#include <cstdio>#include <ctime>#include <fstream>#include <system_error>#include <vector>#include "core/aliases.h"#include "core/hresult.h"#include "core/paths.h"#include "core/unicode.h"Go to the source code of this file.
Namespaces | |
| namespace | bicameral |
| namespace | bicameral::anonymous_namespace{log_sinks.cpp} |
Functions | |
| std::string_view | bicameral::anonymous_namespace{log_sinks.cpp}::ColorOf (Level level) |
| std::string | bicameral::anonymous_namespace{log_sinks.cpp}::DescribeErrorCode (const std::error_code &error) |
| std::tm | bicameral::anonymous_namespace{log_sinks.cpp}::LocalNow () |
| bool | bicameral::anonymous_namespace{log_sinks.cpp}::IsLogFileName (const fs::path &path) |
| void | bicameral::anonymous_namespace{log_sinks.cpp}::RemoveOldLogFiles (const fs::path &directory) |
| std::unique_ptr< LogSink > | bicameral::CreateConsoleSink () |
| std::unique_ptr< LogSink > | bicameral::CreateDebuggerSink () |
| std::expected< fs::path, std::string > | bicameral::OpenLogFile (Logger &logger, const fs::path &directory) |
| fs::path | bicameral::DefaultLogDirectory () |
Variables | |
| constexpr size_t | bicameral::anonymous_namespace{log_sinks.cpp}::MAX_LOG_FILES = 20 |
| constexpr std::wstring_view | bicameral::anonymous_namespace{log_sinks.cpp}::LOG_FILE_PREFIX = L"bicameral-" |
| constexpr std::wstring_view | bicameral::anonymous_namespace{log_sinks.cpp}::LOG_FILE_EXTENSION = L".log" |