logger:
level: "${APISERVER_LOGGER_LEVEL:info}" # 日誌等級:debug、info、warn、error
format: "${APISERVER_LOGGER_FORMAT:console}" # 日誌格式:json, console
output: "${APISERVER_LOGGER_OUTPUT:stdout}" # 輸出方式:stdout、file
file_path: "${APISERVER_LOGGER_FILE_PATH:/var/log/unla/apiserver.log}" # 日誌檔案路徑(output 設 file 時)
max_size: ${APISERVER_LOGGER_MAX_SIZE:100} # 單一日誌檔案最大容量(MB)
max_backups: ${APISERVER_LOGGER_MAX_BACKUPS:3} # 保留的備份檔案數
max_age: ${APISERVER_LOGGER_MAX_AGE:7} # 備份檔案保存天數
compress: ${APISERVER_LOGGER_COMPRESS:true} # 是否壓縮備份檔案
color: ${APISERVER_LOGGER_COLOR:true} # 主控台輸出是否使用顏色
stacktrace: ${APISERVER_LOGGER_STACKTRACE:true} # 錯誤日誌是否包含 stack trace