diff options
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/logging.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/logging.h b/src/zenutil/include/zenutil/logging.h new file mode 100644 index 000000000..6f408f512 --- /dev/null +++ b/src/zenutil/include/zenutil/logging.h @@ -0,0 +1,33 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <zencore/logging.h> + +#include <filesystem> +#include <string> + +////////////////////////////////////////////////////////////////////////// +// +// Logging utilities +// +// These functions extend the basic logging functionality by setting up +// console and file logging, as well as colored output where available, +// for sharing across different executables +// + +namespace zen { + +struct LoggingOptions +{ + bool IsDebug = false; + bool IsVerbose = false; + bool IsTest = false; + std::filesystem::path AbsLogFile; // Absolute path to main log file + std::string LogId; +}; + +void InitializeLogging(const LoggingOptions& LoggingOptions); +void ShutdownLogging(); + +} // namespace zen |