diff options
| author | Stefan Boberg <[email protected]> | 2023-10-12 15:27:55 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-10-12 15:27:55 +0200 |
| commit | 83f4c7f9f564febbcc5895337e2cbc340d7da441 (patch) | |
| tree | ff3514b444bc6943e2668f8f145bf1c9b00556fc /src/zenutil/include | |
| parent | Change default port to 8558 (diff) | |
| parent | Update README.md (diff) | |
| download | zen-83f4c7f9f564febbcc5895337e2cbc340d7da441.tar.xz zen-83f4c7f9f564febbcc5895337e2cbc340d7da441.zip | |
Merge remote-tracking branch 'origin/main' into zs/default-port-change
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 |