Skip to content

Commit

Permalink
revert: return back old logger code
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 24, 2024
1 parent d4c10fe commit a8151f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/neorg/core/log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ end
local unpack = unpack or table.unpack

--- @param config neorg.log.configuration
log.new = function(config, _)
--- @param standalone boolean
log.new = function(config, standalone)
config = vim.tbl_deep_extend("force", default_config, config)
config.plugin = "neorg" -- Force the plugin name to be neorg

local outfile = string.format("%s/%s.log", vim.api.nvim_call_function("stdpath", { "data" }), config.plugin)

local obj = log
local obj = standalone ~= nil and log or {}

local levels = {}
for _, v in ipairs(config.modes) do
Expand Down

0 comments on commit a8151f1

Please sign in to comment.