2020-11-18 12:15:14 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
struct LogSettings
|
|
|
|
|
{
|
|
|
|
|
// The following strings are not localizable
|
2021-03-25 17:28:29 +03:00
|
|
|
inline const static std::wstring defaultLogLevel = L"trace";
|
2020-11-18 12:15:14 +02:00
|
|
|
inline const static std::wstring logLevelOption = L"logLevel";
|
2020-11-18 20:25:20 +02:00
|
|
|
inline const static std::string runnerLoggerName = "runner";
|
2021-04-07 14:43:35 +01:00
|
|
|
inline const static std::wstring logPath = L"Logs\\";
|
2020-11-18 20:25:20 +02:00
|
|
|
inline const static std::wstring runnerLogPath = L"RunnerLogs\\runner-log.txt";
|
2021-01-11 12:51:13 +02:00
|
|
|
inline const static std::string actionRunnerLoggerName = "action-runner";
|
|
|
|
|
inline const static std::wstring actionRunnerLogPath = L"RunnerLogs\\action-runner-log.txt";
|
2021-06-14 12:55:59 +03:00
|
|
|
inline const static std::string updateLoggerName = "update";
|
|
|
|
|
inline const static std::wstring updateLogPath = L"UpdateLogs\\update-log.txt";
|
2021-11-09 22:48:07 +03:00
|
|
|
inline const static std::string fileExplorerLoggerName = "FileExplorer";
|
|
|
|
|
inline const static std::wstring fileExplorerLogPath = L"Logs\\file-explorer-log.txt";
|
2020-11-18 20:25:20 +02:00
|
|
|
inline const static std::string launcherLoggerName = "launcher";
|
|
|
|
|
inline const static std::wstring launcherLogPath = L"LogsModuleInterface\\launcher-log.txt";
|
2021-06-09 09:13:58 -07:00
|
|
|
inline const static std::wstring awakeLogPath = L"Logs\\awake-log.txt";
|
2020-11-25 11:54:10 +02:00
|
|
|
inline const static std::string fancyZonesLoggerName = "fancyzones";
|
2021-04-07 14:43:35 +01:00
|
|
|
inline const static std::wstring fancyZonesLogPath = L"fancyzones-log.txt";
|
|
|
|
|
inline const static std::wstring fancyZonesOldLogPath = L"FancyZonesLogs\\"; // needed to clean up old logs
|
2020-11-24 20:36:04 +02:00
|
|
|
inline const static std::string shortcutGuideLoggerName = "shortcut-guide";
|
|
|
|
|
inline const static std::wstring shortcutGuideLogPath = L"ShortcutGuideLogs\\shortcut-guide-log.txt";
|
2021-01-18 19:38:42 +02:00
|
|
|
inline const static std::string keyboardManagerLoggerName = "keyboard-manager";
|
|
|
|
|
inline const static std::wstring keyboardManagerLogPath = L"Logs\\keyboard-manager-log.txt";
|
2021-10-22 13:30:18 +01:00
|
|
|
inline const static std::string findMyMouseLoggerName = "find-my-mouse";
|
2021-11-22 13:31:31 +00:00
|
|
|
inline const static std::string mouseHighlighterLoggerName = "mouse-highlighter";
|
2022-01-26 14:01:24 +00:00
|
|
|
inline const static std::string mousePointerCrosshairsLoggerName = "mouse-pointer-crosshairs";
|
2021-11-08 13:02:56 +01:00
|
|
|
inline const static std::string powerRenameLoggerName = "powerrename";
|
2021-12-29 20:33:20 +03:00
|
|
|
inline const static std::string alwaysOnTopLoggerName = "always-on-top";
|
|
|
|
|
inline const static std::wstring alwaysOnTopLogPath = L"always-on-top-log.txt";
|
2020-11-18 20:25:20 +02:00
|
|
|
inline const static int retention = 30;
|
2020-11-18 12:15:14 +02:00
|
|
|
std::wstring logLevel;
|
|
|
|
|
LogSettings();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Get log settings from file. File with default options is created if it does not exist
|
|
|
|
|
LogSettings get_log_settings(std::wstring_view file_name);
|