-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: sentry dependency 추가 * build: sentry dependency 추가 * feat: sentry 설정 추가 * feat: captureException 테스트용 코드 추가 * feat: add application-sentry on gitignore * feat: sentry profile 추가 * feat: delete sentry yml * build: spring profile 환경별로 분리 * build: sentry 설정 수정 * fix: jpa 설정 원복 * feat: sentry 테스트용 코드 삭제 * feat: logback-spring 추가 * build: 불필요한 설정 제거 * build: 불필요한 설정 제거 * build: profile별로 swagger, p6spy 설정 분기 * fix: swagger enabled 설정 수정 * fix: p6spy enabled 설정 수정 * fext: 불필요한 설정 삭제 * feat: 불필요한 설정 삭제 * feat: prod에서 swagger enabled false * feat: spring.profile.active=local * feat: dev-build-and-deploy.yaml 프로필 prod 설정 추가 * feat: dev-build-and-deploy.yaml에 application-sentry 설정 주입 --------- Co-authored-by: Minseong Park <pminsung12@gmail.com>
- Loading branch information
1 parent
d282cb0
commit f424626
Showing
8 changed files
with
112 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
application/src/main/resources/appenders/console-appender.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<included> | ||
<appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern> | ||
%highlight([%-5level]) %d{yy-MM-dd HH:mm:ss.SSS} %green([%thread]) %cyan([%logger{0}:%line])-%message%n | ||
</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="SENTRY_APPENDER" class="io.sentry.logback.SentryAppender"> | ||
<minimumEventLevel>ERROR</minimumEventLevel> | ||
</appender> | ||
</included> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,63 @@ | ||
server: | ||
port: 8080 | ||
shutdown: graceful | ||
port: 8080 | ||
shutdown: graceful | ||
|
||
spring: | ||
# 서브모듈 profile | ||
profiles: | ||
include: | ||
- jpa | ||
- ncp | ||
- jwt | ||
- kakao | ||
# swagger를 이용해 API 명세서 생성 | ||
doc: | ||
# 서브모듈 profile | ||
profiles: | ||
active: local | ||
group: | ||
local: | ||
- jpa | ||
- ncp | ||
- jwt | ||
- kakao | ||
dev: | ||
- jpa | ||
- ncp | ||
- jwt | ||
- kakao | ||
prod: | ||
- jpa | ||
- ncp | ||
- jwt | ||
- kakao | ||
- sentry | ||
servlet: | ||
multipart: | ||
max-file-size: 10MB | ||
max-request-size: 30MB | ||
|
||
springdoc: | ||
swagger-ui: | ||
path: /swagger-ui.html | ||
enabled: true | ||
path: /swagger-ui.html | ||
|
||
decorator: | ||
datasource: | ||
p6spy: | ||
enable-logging: true | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: local | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: dev | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: prod | ||
|
||
decorator: | ||
datasource: | ||
p6spy: | ||
enable-logging: false | ||
|
||
servlet: | ||
multipart: | ||
max-file-size: 10MB | ||
max-request-size: 30MB | ||
springdoc: | ||
swagger-ui: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration scan="true" scanPeriod="5 seconds"> | ||
<include resource="appenders/console-appender.xml"/> | ||
|
||
<springProfile name="local"> | ||
<root level="INFO"> | ||
<appender-ref ref="CONSOLE_APPENDER"/> | ||
</root> | ||
</springProfile> | ||
|
||
<springProfile name="dev"> | ||
<root level="INFO"> | ||
<appender-ref ref="CONSOLE_APPENDER"/> | ||
</root> | ||
</springProfile> | ||
|
||
<springProfile name="prod"> | ||
<root level="ERROR"> | ||
<appender-ref ref="CONSOLE_APPENDER"/> | ||
<appender-ref ref="SENTRY_APPENDER"/> | ||
</root> | ||
</springProfile> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters