提交 50bc05f0 作者: 余乾开

feat(config):日志输出到文件

上级 0ffe5269
......@@ -32,3 +32,4 @@ build/
### VS Code ###
.vscode/
kustomization/overlays/prod/kustomize
*.log
\ No newline at end of file
......@@ -18,6 +18,9 @@ spec:
containers:
- name: pms
image: REGISTRY/NAMESPACE/IMAGE:TAG
volumeMounts:
- name: logs
mountPath: /logs
resources:
limits:
memory: 1024Mi
......@@ -29,4 +32,8 @@ spec:
valueFrom:
configMapKeyRef:
name: pms-map
key: SPRING_PROFILES_ACTIVE
\ No newline at end of file
key: SPRING_PROFILES_ACTIVE
volumes:
- name: logs
hostPath:
path: /logs
\ No newline at end of file
......@@ -16,9 +16,5 @@ spring:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
logging:
level:
com:
mmc:
pms: DEBUG
file:
name: "logs/${spring.application.name}.log"
name: "logs/${spring.application.name}.log"
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论