From 9b126425edfc064b0c7d2dbbcb127efe07025c7e Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sun, 8 Nov 2020 22:15:01 +0900 Subject: [PATCH] Rename logfile/loglevel to log-file/log-level --- README.md | 4 ++-- langserver/handler.go | 4 ++-- schema.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 87f8687..107dbd2 100644 --- a/README.md +++ b/README.md @@ -223,8 +223,8 @@ If you want to debug output of commands: ```yaml version: 2 -logfile: /path/to/output.log -loglevel: 1 +log-file: /path/to/output.log +log-level: 1 ``` ### Configuration for [vim-lsp](https://github.com/prabirshrestha/vim-lsp/) diff --git a/langserver/handler.go b/langserver/handler.go index a108ed4..8b1b2b0 100644 --- a/langserver/handler.go +++ b/langserver/handler.go @@ -25,8 +25,8 @@ import ( // Config is type Config struct { Version int `yaml:"version"` - LogFile string `yaml:"logfile"` - LogLevel int `yaml:"loglevel"` + LogFile string `yaml:"log-file"` + LogLevel int `yaml:"log-level"` Commands []Command `yaml:"commands"` Languages map[string][]Language `yaml:"languages"` RootMarkers []string `yaml:"root-markers"` diff --git a/schema.json b/schema.json index 60692bc..dc8159e 100644 --- a/schema.json +++ b/schema.json @@ -137,11 +137,11 @@ }, "type": "array" }, - "logfile": { + "log-file": { "description": "path to log file", "type": "string" }, - "loglevel": { + "log-level": { "description": "log level", "type": "number" },