refactor(log): restyle SLog

This commit is contained in:
phaneron 2024-09-07 12:26:06 -04:00
parent c83ae850a1
commit 57430d406f
2 changed files with 8 additions and 17 deletions

View file

@ -1,23 +1,20 @@
#ifndef STORM_LOG_HPP
#define STORM_LOG_HPP
#include <cstdarg>
#include <cstdint>
#include "storm/Handle.hpp"
#include "storm/String.hpp"
#define SLOG_FLAG_DEFAULT 0 // Create or open log file with first SLogWrite() call
#define SLOG_FLAG_OPEN_FILE 1 // Create or open log file with SLogCreate()
#define SLOG_FLAG_NO_FILE 2 // Don't use log file (use OutputDebugString or console only)
#define SLOG_FLAG_APPEND 4 // Don't truncate existing log file
#define STORM_LOG_FLAG_DEFAULT 0 // Create or open log file with first SLogWrite() call
#define STORM_LOG_FLAG_OPEN_FILE 1 // Create or open log file with SLogCreate()
#define STORM_LOG_FLAG_NO_FILE 2 // Don't use log file (use OutputDebugString or console only)
#define STORM_LOG_FLAG_APPEND 4 // Don't truncate existing log file
DECLARE_STRICT_HANDLE(HSLOG);
DECLARE_STRICT_HANDLE(HLOCKEDLOG);
void SLogInitialize();
int SLogIsInitialized();
void SLogDestroy();
@ -32,5 +29,4 @@ int32_t SLogSetIndent(HSLOG log, int32_t deltaIndent);
void SLogVWrite(HSLOG log, const char* format, va_list arglist);
void SLogWrite(HSLOG log, const char* format, ...);
#endif