Is this still valid? I can’t get logging to work.
I’m writing a mod called “demon”:
"info" : {
"name" : "demon",
"version" : 1
},
I’m trying to write data from a lua file:
local log = radiant.log.create_logger("gen")
local DemonicBuffController=class()
function DemonicBuffController:__init(entity,buff)
self._entity=entity
self._buff=buff
log:detail('Hello world')
end
return DemonicBuffController
My user_settings.json
contains the following:
"logging" : {
"show_console" : true,
"mods" : {
"demon" : {
"gen" : 9
}
}
}
I do not get pretty messages in the Lua console.
print()
works, though, so I’ll use that for the time being.