Skip to content

Commit

Permalink
chore: 로깅 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchijinju committed Dec 6, 2024
1 parent 3d173be commit 59596d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cp $PROJECT_ROOT/build/build/libs/*.jar $JAR_FILE

# jar 파일 실행
echo "$TIME_NOW > $JAR_FILE 파일 실행" >> $DEPLOY_LOG
nohup java -jar $JAR_FILE > $APP_LOG 2> $ERROR_LOG &
nohup java -jar $JAR_FILE &

CURRENT_PID=$(pgrep -f $JAR_FILE)
echo "$TIME_NOW > 실행된 프로세스 아이디 $CURRENT_PID 입니다." >> $DEPLOY_LOG
10 changes: 10 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ springdoc:
disable-swagger-default-url: true
display-request-duration: true
operations-sorter: alpha

logging:
file:
name: mejai-%d{yyyy-MM-dd-hh-mm}.log
logback:
rollingpolicy:
clean-history-on-start: off
file-name-pattern: ~/logs/mejai-%d{yyyy-MM-dd-hh-mm}.log
max-history: 7
max-file-size: 10MB

0 comments on commit 59596d7

Please sign in to comment.