0
点赞
收藏
分享

微信扫一扫

生产环境 - 怎么查看Consul debug级别的日志?

目录

背景

分析

解决


背景

生产环境中的Consul使用的默认的日志级别INFO,现在想要看到debug级别的日志,应该怎么办?总不能重启Consul吧?那可不行啊...

生产环境的Consul启动命令如下:

# 后台运行
nohup ./consul agent -server -bootstrap-expect 1 -data-dir ./data -bind=192.168.1.125 -client 0.0.0.0 -ui &

所以默认情况下使用的日志级别是INFO。

分析

既然所有的consul命令都在consul里面,那我们执行consul --help看下能不能改日志级别呢?

[rootu@vdl consul]$ ./consul --help
Usage: consul [--version] [--help] <command> [<args>]

Available commands are:
    acl            Interact with Consul's ACLs
    
举报

相关推荐

0 条评论