Tinylog: Getting "LOGGER ERROR: Illegal severity level" on Json writer

Tinylog: Getting "LOGGER ERROR: Illegal severity level" on Json writer

我尝试在我的系统中实现下面提到的代码。我收到如下错误: 记录器错误:无效字符集:UTF-8
记录器错误:非法严重级别:错误

`writer3               = json
writer3.level         = error            
writer3.file          = logs/log-{count}.json
writer3.field.level   = level             
writer3.field.source  = {class}.{method}()
writer3.field.message = message           
writer3.charset       = UTF-8         
writer3.append        = true          
writer3.buffered      = true`

错误的原因是 writer3.level = error writer3.charset = UTF-8 行末尾的白色 space。只需删除 errorUTF-8 后面的所有 space 和制表符。之后,JSON 编写器将正常工作:)

PS: 在下个版本的tinylog 2.4中,logging framework会trim这样的whitespace自动