#!/usr/bin/env bash
base="/app"
levels=("debug" "sql" "audit" "access" "info" "warning" "error" "critical" "uwsgi")
# 创建日志级别目录
for level in "${levels[@]}" ;
do
logdir="${base}/${level}log"
if [[ ! -d ${logdir} ]]; then
mkdir -p ${logdir}
fi
done
shell脚本for循环使用
最新推荐文章于 2024-06-18 15:08:38 发布