Write To A Log File From A Neovim Lua Plugin

June - 2021
local log = function(message)
    local log_file_path = './logs/window_open_file_test_1.log'
    local log_file = io.open(log_file_path, "a")
    io.output(log_file)
    io.write(message.."\n")
    io.close(log_file)
end