PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
log_paths.h
1#pragma once
2
3#include "pixelbullet/application/log.h"
4
5#include <filesystem>
6#include <string>
7
8namespace pixelbullet::logging::detail
9{
11{
12 std::filesystem::path root_directory;
13 std::filesystem::path binary_root_directory;
14 std::filesystem::path session_directory;
15 std::filesystem::path session_log_path;
16 std::filesystem::path core_log_path;
17 std::filesystem::path client_log_path;
18 std::filesystem::path validation_log_path;
19 std::filesystem::path events_ndjson_path;
20 std::filesystem::path session_metadata_path;
21 std::filesystem::path latest_manifest_path;
22 std::string binary_stem;
23 bool used_environment_override = false;
24};
25
26[[nodiscard]] std::filesystem::path ResolveLogRoot(const log::LogConfig& config, bool* used_environment_override);
27[[nodiscard]] ResolvedLogPaths ResolveLogPaths(const ApplicationBootstrap& bootstrap, const log::LogConfig& config);
28
29void PruneSessions(const std::filesystem::path& binary_root_directory, std::size_t retain_count);
30} // namespace pixelbullet::logging::detail
Definition specification.h:62
Definition log.h:35