Skip to content
Discussion options

You must be logged in to vote

I'm not sure what you mean by logger.debug but if you mean os.Logger or NSLog then those logs don't appear in the console.

You can add additional printing when some environmental variable is set:

    #if DEBUG
    let isNvim = ProcessInfo.processInfo.environment["IS_NVIM"] != nil
    #endif

    private func log(_ message: String) {
        #if DEBUG
        if isNvim {
            print(message)
        }
        #endif
    }

This way you can pass from Neovim environmental variable to see all logs.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nikagar4epm
Comment options

@wojciech-kulik
Comment options

@nikagar4epm
Comment options

Answer selected by nikagar4epm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants