Refactor logging
authorShadowNinja <shadowninja@minetest.net>
Tue, 13 Oct 2015 07:57:44 +0000 (03:57 -0400)
committerkwolekr <kwolekr@minetest.net>
Wed, 14 Oct 2015 05:03:54 +0000 (01:03 -0400)
commit2139d7d45fb1a8ed250ad96c9975c581f02f72a9
tree3e954063710add83723798937637db7c67a254eb
parente0b57c1140554fccbf3e57a036cc4100887ab8f1
Refactor logging

- Add warning log level
- Change debug_log_level setting to enumeration string
- Map Irrlicht log events to MT log events
- Encapsulate log_* functions and global variables into a class, Logger
- Unify dstream with standard logging mechanism
- Unify core.debug() with standard core.log() script API
25 files changed:
builtin/common/strict.lua
builtin/fstk/ui.lua
builtin/game/deprecated.lua
builtin/game/register.lua
builtin/init.lua
doc/lua_api.txt
minetest.conf.example
src/client/clientlauncher.cpp
src/client/clientlauncher.h
src/client/inputhandler.h
src/debug.cpp
src/debug.h
src/defaultsettings.cpp
src/game.cpp
src/gameparams.h
src/log.cpp
src/log.h
src/logoutputbuffer.h [deleted file]
src/main.cpp
src/minimap.cpp
src/script/lua_api/l_util.cpp
src/script/lua_api/l_util.h
src/threading/thread.cpp
src/unittest/test.cpp
src/unittest/test.h