aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-12 15:27:55 +0200
committerStefan Boberg <[email protected]>2023-10-12 15:27:55 +0200
commit83f4c7f9f564febbcc5895337e2cbc340d7da441 (patch)
treeff3514b444bc6943e2668f8f145bf1c9b00556fc /src/zenutil/include
parentChange default port to 8558 (diff)
parentUpdate README.md (diff)
downloadzen-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.h33
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