update river config
This commit is contained in:
parent
ffa2bac00b
commit
a3804e67a5
4 changed files with 117 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue