Files
LegacyWeaveLoader/WeaveLoaderRuntime/src/LogUtil.h
Jacobwasbeast fa195fdc2e Rebrand LegacyForge to Weave Loader
Rename across entire codebase:
- LegacyForge -> WeaveLoader (identifiers, namespaces, classes, DLLs)
- LegacyForgeRuntime -> WeaveLoaderRuntime (C++ project)
- LegacyForge.API/Core/Launcher -> WeaveLoader.API/Core/Launcher (C# projects)
- [LegacyForge] -> [WeaveLoader] (log prefixes)
- legacyforge -> weaveloader (config files, log files, backup suffixes)
- Display name "Weave Loader" in README, CONTRIBUTING, LICENSE
2026-03-06 23:31:18 -06:00

22 lines
729 B
C++

#pragma once
#include <cstddef>
namespace LogUtil
{
// Must be called once at startup with the runtime DLL's directory (with trailing backslash).
// Creates a logs/ subdirectory and sets up all log file paths.
void SetBaseDir(const char* baseDir);
// Returns the logs directory path (with trailing backslash)
const char* GetLogsDir();
// Appends a timestamped line to weaveloader.log and prints to stdout
void Log(const char* fmt, ...);
// Writes game debug output to game_debug.log with a timestamp
void LogGameOutput(const char* str, size_t len);
// Writes crash information to crash.log (no timestamp prefix -- caller manages formatting)
void LogCrash(const char* fmt, ...);
}