File tree Expand file tree Collapse file tree 9 files changed +84
-1
lines changed
java/ddingdong/ddingdongBE/domain/activityreport/controller Expand file tree Collapse file tree 9 files changed +84
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ dependencies {
43
43
implementation ' org.apache.poi:poi-ooxml:5.2.0'
44
44
implementation ' org.springframework.boot:spring-boot-configuration-processor'
45
45
46
+ implementation ' io.sentry:sentry-logback:7.6.0'
46
47
47
48
compileOnly ' org.projectlombok:lombok'
48
49
runtimeOnly ' com.h2database:h2'
Original file line number Diff line number Diff line change 20
20
21
21
import lombok .RequiredArgsConstructor ;
22
22
23
- import lombok .extern .slf4j .Slf4j ;
24
23
import org .springframework .security .core .annotation .AuthenticationPrincipal ;
25
24
import org .springframework .web .bind .annotation .DeleteMapping ;
26
25
import org .springframework .web .bind .annotation .GetMapping ;
Original file line number Diff line number Diff line change 25
25
issuer : " ddingdong"
26
26
secret : ${JWT_SECRET}
27
27
expiration : 36000
28
+
29
+ sentry :
30
+ dsn : ${SENTRY_DSN_KEY}
31
+ enable-tracing : true
32
+ environment : dev
Original file line number Diff line number Diff line change 35
35
static : ${AWS_DEFAULT_REGION}
36
36
stack :
37
37
auto : false
38
+
39
+ sentry :
40
+ dsn : ${SENTRY_KEY}
41
+ enable-tracing : true
42
+ environment : dev
Original file line number Diff line number Diff line change
1
+ <included >
2
+ <appender name =" CONSOLE" class =" ch.qos.logback.core.ConsoleAppender" >
3
+ <encoder >
4
+ <pattern >${CONSOLE_LOG_PATTERN}</pattern >
5
+ </encoder >
6
+ </appender >
7
+ </included >
Original file line number Diff line number Diff line change
1
+ <included >
2
+ <appender name =" FILE-ERROR" class =" ch.qos.logback.core.rolling.RollingFileAppender" >
3
+ <filter class =" ch.qos.logback.classic.filter.LevelFilter" >
4
+ <level >ERROR</level >
5
+ </filter >
6
+ <encoder >
7
+ <pattern >${FILE_LOG_PATTERN}</pattern >
8
+ </encoder >
9
+ <rollingPolicy class =" ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy" >
10
+ <fileNamePattern >./log/pium-prod-%d{yyyy-MM-dd}.%i.log</fileNamePattern >
11
+ <maxFileSize >50MB</maxFileSize >
12
+ <maxHistory >50</maxHistory >
13
+ <totalSizeCap >3GB</totalSizeCap >
14
+ </rollingPolicy >
15
+ </appender >
16
+ </included >
Original file line number Diff line number Diff line change
1
+ <included >
2
+ <appender name =" FILE-INFO" class =" ch.qos.logback.core.rolling.RollingFileAppender" >
3
+ <encoder >
4
+ <pattern >${FILE_LOG_PATTERN}</pattern >
5
+ </encoder >
6
+ <rollingPolicy class =" ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy" >
7
+ <fileNamePattern >./log/pium-dev-%d{yyyy-MM-dd}.%i.log</fileNamePattern >
8
+ <maxFileSize >50MB</maxFileSize >
9
+ <maxHistory >100</maxHistory >
10
+ <totalSizeCap >1GB</totalSizeCap >
11
+ </rollingPolicy >
12
+ </appender >
13
+ </included >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <configuration >
3
+ <property name =" CONSOLE_LOG_PATTERN"
4
+ value =" %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %clr(%5level) %cyan(%logger) - %msg%n" />
5
+ <property name =" FILE_LOG_PATTERN" value =" %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %5level %logger - %msg%n" />
6
+
7
+ <springProfile name =" local" >
8
+ <include resource =" console-appender.xml" />
9
+
10
+ <root level =" INFO" >
11
+ <appender-ref ref =" CONSOLE" />
12
+ </root >
13
+ </springProfile >
14
+
15
+ <springProfile name =" dev" >
16
+ <include resource =" file-info-appender.xml" />
17
+ <include resource =" file-error-appender.xml" />
18
+ <include resource =" sentry-appender.xml" />
19
+
20
+ <root level =" INFO" >
21
+ <appender-ref ref =" FILE-INFO" />
22
+ </root >
23
+
24
+ <root level =" ERROR" >
25
+ <appender-ref ref =" FILE-ERROR" />
26
+ <appender-ref ref =" SENTRY" />
27
+ </root >
28
+ </springProfile >
29
+ </configuration >
Original file line number Diff line number Diff line change
1
+ <appender name =" SENTRY" class =" io.sentry.logback.SentryAppender" >
2
+ <filter class =" ch.qos.logback.classic.filter.ThresholdFilter" >
3
+ <level >ERROR</level >
4
+ </filter >
5
+ <encoder >
6
+ <pattern >%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern >
7
+ </encoder >
8
+ </appender >
You can’t perform that action at this time.
0 commit comments