update river config

This commit is contained in:
Alexander Navarro 2024-10-30 16:08:52 -03:00
parent ffa2bac00b
commit a3804e67a5
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
4 changed files with 117 additions and 27 deletions

View file

@ -6,6 +6,7 @@ local Logger = {
available_outputs = {
stdout = io.stdout
},
output = io.stdout
}
Logger.__index = Logger
@ -27,20 +28,20 @@ function Logger:new(output)
end
function Logger:open()
self:log("\n\n\n")
self:log("Opening logger...")
self:log("\n\n")
self:log("Opening logger...\n")
end
function Logger:close()
self:log("Closing logger...")
self:log("\n\n\n")
self:log("\n\n")
self.output:close()
end
--- Write data to ouput, it passes the arguments directly to file:write(...)
---@param ... string|number the data to write
function Logger:log(...)
self.output:write(arg)
self.output:write(...)
self.output:write("\n")
self.output:flush()
end