aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_select.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 8f6ddf5b..e159be99 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -905,6 +905,14 @@ addtimer( function( )
end
)
+local function set_logger(new_logger)
+ local old_logger = log;
+ if new_logger then
+ log = new_logger;
+ end
+ return old_logger;
+end
+
----------------------------------// PUBLIC INTERFACE //--
return {
@@ -918,6 +926,7 @@ return {
addtimer = addtimer,
addserver = addserver,
getserver = getserver,
+ setlogger = setlogger,
getsettings = getsettings,
setquitting = setquitting,
removeserver = removeserver,