Skip to content

Commit 707fbf7

Browse files
authored
Merge pull request #350 from BCSDLab/develop
v2.0.1
2 parents 69c150f + 14afd57 commit 707fbf7

5 files changed

Lines changed: 85 additions & 2 deletions

File tree

pom.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,41 @@
287287
<version>1.9.4</version>
288288
</dependency>
289289

290+
<dependency>
291+
<groupId>org.slf4j</groupId>
292+
<artifactId>slf4j-api</artifactId>
293+
<version>2.0.7</version>
294+
</dependency>
295+
290296
<dependency>
291297
<groupId>org.slf4j</groupId>
292298
<artifactId>slf4j-simple</artifactId>
293-
<version>1.7.25</version>
299+
<version>2.0.7</version>
300+
</dependency>
301+
<dependency>
302+
<groupId>org.slf4j</groupId>
303+
<artifactId>slf4j-log4j12</artifactId>
304+
<version>2.0.7</version>
305+
</dependency>
306+
<dependency>
307+
<groupId>org.slf4j</groupId>
308+
<artifactId>jcl-over-slf4j</artifactId>
309+
<version>2.0.7</version>
310+
</dependency>
311+
<dependency>
312+
<groupId>ch.qos.logback</groupId>
313+
<artifactId>logback-core</artifactId>
314+
<version>1.3.11</version>
315+
</dependency>
316+
<dependency>
317+
<groupId>ch.qos.logback</groupId>
318+
<artifactId>logback-access</artifactId>
319+
<version>1.3.11</version>
320+
</dependency>
321+
<dependency>
322+
<groupId>ch.qos.logback</groupId>
323+
<artifactId>logback-classic</artifactId>
324+
<version>1.3.11</version>
294325
</dependency>
295326

296327
<!-- mongodb -->

src/main/resources/logback.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<logger name="org.springframework" level="INFO"/>
4+
<logger name="springfox.documentation" level="ERROR"/>
5+
6+
</configuration>

src/main/resources/mapper/admin/AdminShopMapper.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@
526526
FROM `koin`.`shops`
527527
WHERE
528528
`id` = #{id}
529-
AND `is_deleted` = 0
530529
</select>
531530

532531
<select id="getMenuCategoryByShopIdAndName" resultType="koreatech.in.domain.Shop.ShopMenuCategory">

src/main/webapp/WEB-INF/web.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,25 @@
1515
classpath*:common/*.xml
1616
</param-value>
1717
</context-param>
18+
<filter>
19+
<filter-name>TeeFilter</filter-name>
20+
<filter-class>ch.qos.logback.access.servlet.TeeFilter</filter-class>
21+
<init-param>
22+
<param-name>excludes</param-name>
23+
<param-value>swagger-ui.html</param-value>
24+
</init-param>
25+
</filter>
26+
27+
<filter-mapping>
28+
<filter-name>TeeFilter</filter-name>
29+
<url-pattern>/*</url-pattern>
30+
</filter-mapping>
1831

32+
<filter-mapping>
33+
<filter-name>TeeFilter</filter-name>
34+
<url-pattern>/swagger-ui.html</url-pattern> <!-- Add the URL pattern you want to exclude -->
35+
<dispatcher>REQUEST</dispatcher> <!-- Exclude only request type -->
36+
</filter-mapping>
1937
<!-- Creates the Spring Container shared by all Servlets and Filters -->
2038
<listener>
2139
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

tomcat/conf/logback-access.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<configuration>
2+
<property name="LOG_PATH_NAME" value="${user.home}/http-access.log"/>
3+
<property name="HTTP_PATTERN" value="%n-------- INFO --------%n- time: %t{yyyy-MM-dd HH:mm:ss}%n- summary: %a\t%r\t%s%n%n-------- HTTP REQUEST --------%n%header{Referer}\t%header{User-Agent}\t%D\t%I%n%fullRequest%n-------- HTTP RESPONSE --------%n%fullResponse%n--------%n"/>
4+
5+
6+
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
7+
<file>${LOG_PATH_NAME}/access.log</file>
8+
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
9+
<fileNamePattern>${LOG_PATH_NAME}/access.%d{yyyy-MM-dd}.log</fileNamePattern>
10+
<maxHistory>30</maxHistory>
11+
</rollingPolicy>
12+
<encoder>
13+
<pattern>${HTTP_PATTERN}</pattern>
14+
</encoder>
15+
</appender>
16+
17+
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
18+
<encoder>
19+
<pattern>${HTTP_PATTERN}</pattern>
20+
</encoder>
21+
</appender>
22+
23+
<logger name="org.springframework" level="ERROR"/>
24+
<logger name="springfox.documentation" level="ERROR"/>
25+
<logger name="springfox.documentation.schema.property.bean.BeanModelProperty" level="INFO"/>
26+
27+
<appender-ref ref="FILE"/>
28+
<appender-ref ref="CONSOLE"/>
29+
</configuration>

0 commit comments

Comments
 (0)