 |
Blamite Game Engine - Strings
00307.01.26.21.0804.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
47 std::string message =
"";
48 std::string timestamp =
"";
61 std::string GetMessageLine();
89 std::vector<BlamBasicLogMessage> history = std::vector<BlamBasicLogMessage>();
90 std::vector<BlamLogReceiver*> receivers = std::vector<BlamLogReceiver*>();
108 std::vector<BlamBasicLogMessage> GetHistory();
Interface used to receive log messages.
Definition: logger.h:67
Class represneting a basic log message.
Definition: logger.h:43
STRINGS_API std::string GenerateLogLevelPrefix(BlamLogLevel log_level)
Generates a prefix for a given log level, such as [INFO] or [WARN].
Definition: logger.cpp:3
virtual void LogMessageReceived(BlamBasicLogMessage message)
Called whenever a log message is received.
Definition: logger.h:75
#define STRINGS_API
Definition: logger.h:11
@ AiError
Placeholder for the future, indicates an error with AI.
STRINGS_API void AddReceiver(BlamLogReceiver *receiver)
Registers a receiver which will be notified on new log messages.
Definition: logger.cpp:25
STRINGS_API void RemoveReceiver(BlamLogReceiver *receiver)
Unregisters a receiver.
Definition: logger.cpp:30
@ Error
Indicates an error that could cause engine instability.
@ None
Indicates no severity, and is displayed with no formatting.
@ Input
Indicates that the user has executed a command from console.
@ Severe
Indicates a severe error that the engine cannot recover from.
Namespace containing functions related to the logger.
Definition: logger.h:150
Class representing a basic logger.
Definition: logger.h:86
BlamLogLevel
Enumerator to specify log event severity.
Definition: logger.h:17
STRINGS_INTERNAL void LogEvent(std::string message, BlamLogLevel log_level)
Logs an event to the Strings log.
Definition: logger.cpp:20
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...