mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
25 lines
No EOL
545 B
Lua
25 lines
No EOL
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 |