chore(log): add SLOG_FLAG_* flags

This commit is contained in:
VDm 2024-02-20 00:14:49 +04:00
parent efe062ca6b
commit b195319ff6
2 changed files with 12 additions and 4 deletions

View file

@ -3,11 +3,19 @@
#include <cstdarg>
#include <cstdint>
#include "storm/Common.hpp"
#include "storm/String.hpp"
enum : uint32_t {
SLOG_FLAG_DEFAULT = 0, // Create or open log file with first SLogWrite() call
SLOG_FLAG_OPEN_FILE = 1, // Create or open log file with SLogCreate()
SLOG_FLAG_NO_FILE = 2, // Don't use log file (use OutputDebugString or console only)
SLOG_FLAG_APPEND = 4 // Don't truncate existing log file
};
DECLARE_STRICT_HANDLE(HSLOG);
DECLARE_STRICT_HANDLE(HLOCKEDLOG);