1
2
3
4
5
6 #ifndef SOULNG_UTIL_LOG_INCLUDED
7 #define SOULNG_UTIL_LOG_INCLUDED
8 #include <soulng/util/UtilApi.hpp>
9 #include <string>
10
11 namespace soulng { namespace util {
12
13 enum class LogMode
14 {
15 console, queue
16 };
17
18 void SetLogMode(LogMode mode);
19 void StartLog();
20 void EndLog();
21 void LogMessage(int logStreamId, const std::string& message);
22 void LogMessage(int logStreamId, const std::string& message, int indent);
23 int WaitForLogMessage();
24 int FetchLogMessage(char16_t* buf, int size);
25 std::string FetchLogMessage(bool& endOfLog, int timeoutMs, bool& timeout);
26
27 } }
28
29 #endif // SOULNG_UTIL_LOG_INCLUDED