mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-25 20:13:09 +00:00
25 lines
545 B
Lua
25 lines
545 B
Lua
|
local interface = {}
|
||
|
|
||
|
if plugin_logger ~= nil then
|
||
|
interface.log = plugin_logger
|
||
|
else
|
||
|
interface.log = {
|
||
|
trace = function (info)
|
||
|
print("trace: " .. info)
|
||
|
end,
|
||
|
debug = function (info)
|
||
|
print("debug: " .. info)
|
||
|
end,
|
||
|
info = function (info)
|
||
|
print("info: " .. info)
|
||
|
end,
|
||
|
warn = function (info)
|
||
|
print("warn: " .. info)
|
||
|
end,
|
||
|
error = function (info)
|
||
|
print("error: " .. info)
|
||
|
end,
|
||
|
}
|
||
|
end
|
||
|
|
||
|
return interface
|