class LoggingConfiguration
- namespace: plugin_template
Control whether or not logging is printed to the console or to disk.
fields
LoggingConfiguration.level
LoggingConfiguration.level : ("trace"|"debug"|"info"|"warn"|"fatal"|vim.log.levels.DEBUG|vim.log.levels.ERROR|vim.log.levels.INFO|vim.log.levels.TRACE|vim.log.levels.WARN)
| "trace"
| "debug"
| "info"
| "warn" -- | "error"
| "fatal"
| vim.log.levels.DEBUG
| vim.log.levels.ERROR
| vim.log.levels.INFO
| vim.log.levels.TRACE
| vim.log.levels.WARN -- )?
Any messages above this level will be logged.
LoggingConfiguration.use_console
LoggingConfiguration.use_console : boolean?
Should print the output to neovim while running. Warning: This is very spammy. You probably don't want to enable this unless you have to.
LoggingConfiguration.use_file
LoggingConfiguration.use_file : boolean?
Should write to a file.
LoggingConfiguration.output_path
LoggingConfiguration.output_path : string?
The default path on-disk where log files will be written to. Defaults to "/home/selecaoone/.local/share/nvim/plugin_name.log".