mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-21 15:57:30 +00:00
add lua logging facilities as Util.Log*() functions
This commit is contained in:
2 files changed
+29
No files matched your search
@@ -214,6 +214,10 @@ void RegisterThread(const std::string& str);
|
||||
do { \
|
||||
Application::Console().Write(_this_location + std::string("[LUA ERROR] ") + (x)); \
|
||||
} while (false)
|
||||
#define beammp_lua_log(level, plugin, x) \
|
||||
do { \
|
||||
Application::Console().Write(_this_location + fmt::format("[{}] [{}] ", plugin, level) + (x)); \
|
||||
} while (false)
|
||||
#define beammp_lua_warn(x) \
|
||||
do { \
|
||||
Application::Console().Write(_this_location + std::string("[LUA WARN] ") + (x)); \
|
||||
|
||||
Reference in new issue
Block a user