#!/bin/sh
if [ $# -lt 3 ]; then
echo "./change_imas_logger.sh port logger level"
exit
fi
curl "http://imas.bigdata.cn:$1/actuator/loggers/$2" -i -XPOST -H 'Content-Type: application/json' -d "{\"configuredLevel\":\"$3\"}"
动态调整日志等级:https://www.jb51.net/article/225344.htm