log: implement automatic module name deduction
Now the name of a module, from which the logging function was called,
is determined automatically during the execution of `require('log')`
in the module's source code. This is implemented by overriding the
built-in `require` function.
Part of #3211
NO_DOC=See next commit
NO_CHANGELOG=See next commit
Co-authored-by:
AnastasMIPT <beliaev.ab@tarantool.org>
Showing
- src/lua/init.lua 116 additions, 0 deletionssrc/lua/init.lua
- src/lua/log.lua 8 additions, 0 deletionssrc/lua/log.lua
- test/box-luatest/gh_3211_module/testmod.lua 6 additions, 0 deletionstest/box-luatest/gh_3211_module/testmod.lua
- test/box-luatest/gh_3211_per_module_log_level_test.lua 12 additions, 0 deletionstest/box-luatest/gh_3211_per_module_log_level_test.lua
- test/box-luatest/gh_7860_syslog_json_test.lua 3 additions, 1 deletiontest/box-luatest/gh_7860_syslog_json_test.lua
- test/box-tap/gh-4785-syslog.test.lua 6 additions, 5 deletionstest/box-tap/gh-4785-syslog.test.lua
Loading
Please register or sign in to comment