mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 10:57:15 +08:00 
			
		
		
		
	refactor(log): continew-starter-log-common => continew-starter-log-core
This commit is contained in:
		| @@ -398,10 +398,10 @@ | |||||||
|                 <version>${revision}</version> |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|             <!-- 日志模块 - 公共模块 --> |             <!-- 日志模块 - 核心模块 --> | ||||||
|             <dependency> |             <dependency> | ||||||
|                 <groupId>top.charles7c.continew</groupId> |                 <groupId>top.charles7c.continew</groupId> | ||||||
|                 <artifactId>continew-starter-log-common</artifactId> |                 <artifactId>continew-starter-log-core</artifactId> | ||||||
|                 <version>${revision}</version> |                 <version>${revision}</version> | ||||||
|             </dependency> |             </dependency> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,6 +9,6 @@ | |||||||
|         <version>${revision}</version> |         <version>${revision}</version> | ||||||
|     </parent> |     </parent> | ||||||
| 
 | 
 | ||||||
|     <artifactId>continew-starter-log-common</artifactId> |     <artifactId>continew-starter-log-core</artifactId> | ||||||
|     <description>ContiNew Starter 日志模块 - 公共模块</description> |     <description>ContiNew Starter 日志模块 - 核心模块</description> | ||||||
| </project> | </project> | ||||||
| @@ -14,9 +14,9 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.annotation; | package top.charles7c.continew.starter.log.core.annotation; | ||||||
| 
 | 
 | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| 
 | 
 | ||||||
| import java.lang.annotation.*; | import java.lang.annotation.*; | ||||||
| 
 | 
 | ||||||
| @@ -14,9 +14,9 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.dao; | package top.charles7c.continew.starter.log.core.dao; | ||||||
| 
 | 
 | ||||||
| import top.charles7c.continew.starter.log.common.model.LogRecord; | import top.charles7c.continew.starter.log.core.model.LogRecord; | ||||||
| 
 | 
 | ||||||
| import java.util.Collections; | import java.util.Collections; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,10 +14,10 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.dao.impl; | package top.charles7c.continew.starter.log.core.dao.impl; | ||||||
| 
 | 
 | ||||||
| import top.charles7c.continew.starter.log.common.dao.LogDao; | import top.charles7c.continew.starter.log.core.dao.LogDao; | ||||||
| import top.charles7c.continew.starter.log.common.model.LogRecord; | import top.charles7c.continew.starter.log.core.model.LogRecord; | ||||||
| 
 | 
 | ||||||
| import java.util.LinkedList; | import java.util.LinkedList; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| @@ -14,7 +14,7 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.enums; | package top.charles7c.continew.starter.log.core.enums; | ||||||
| 
 | 
 | ||||||
| import java.util.Collections; | import java.util.Collections; | ||||||
| import java.util.LinkedHashSet; | import java.util.LinkedHashSet; | ||||||
| @@ -14,9 +14,9 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.model; | package top.charles7c.continew.starter.log.core.model; | ||||||
| 
 | 
 | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| 
 | 
 | ||||||
| import java.time.Clock; | import java.time.Clock; | ||||||
| import java.time.Duration; | import java.time.Duration; | ||||||
| @@ -14,12 +14,12 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.model; | package top.charles7c.continew.starter.log.core.model; | ||||||
| 
 | 
 | ||||||
| import cn.hutool.core.text.CharSequenceUtil; | import cn.hutool.core.text.CharSequenceUtil; | ||||||
| import org.springframework.http.HttpHeaders; | import org.springframework.http.HttpHeaders; | ||||||
| import top.charles7c.continew.starter.core.util.IpUtils; | import top.charles7c.continew.starter.core.util.IpUtils; | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| import top.charles7c.continew.starter.web.util.ServletUtils; | import top.charles7c.continew.starter.web.util.ServletUtils; | ||||||
| 
 | 
 | ||||||
| import java.net.URI; | import java.net.URI; | ||||||
| @@ -14,9 +14,9 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.model; | package top.charles7c.continew.starter.log.core.model; | ||||||
| 
 | 
 | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| 
 | 
 | ||||||
| import java.util.*; | import java.util.*; | ||||||
| 
 | 
 | ||||||
| @@ -14,7 +14,7 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.model; | package top.charles7c.continew.starter.log.core.model; | ||||||
| 
 | 
 | ||||||
| import java.net.URI; | import java.net.URI; | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| @@ -14,7 +14,7 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package top.charles7c.continew.starter.log.common.model; | package top.charles7c.continew.starter.log.core.model; | ||||||
| 
 | 
 | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| 
 | 
 | ||||||
| @@ -25,10 +25,10 @@ | |||||||
|             <artifactId>transmittable-thread-local</artifactId> |             <artifactId>transmittable-thread-local</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |  | ||||||
|         <!-- 日志模块 - 公共模块 --> |         <!-- 日志模块 - 核心模块 --> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>top.charles7c.continew</groupId> |             <groupId>top.charles7c.continew</groupId> | ||||||
|             <artifactId>continew-starter-log-common</artifactId> |             <artifactId>continew-starter-log-core</artifactId> | ||||||
|         </dependency> |         </dependency> | ||||||
|     </dependencies> |     </dependencies> | ||||||
| </project> | </project> | ||||||
| @@ -26,8 +26,8 @@ import org.springframework.context.annotation.Bean; | |||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
| import org.springframework.web.servlet.config.annotation.InterceptorRegistry; | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; | ||||||
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | ||||||
| import top.charles7c.continew.starter.log.common.dao.LogDao; | import top.charles7c.continew.starter.log.core.dao.LogDao; | ||||||
| import top.charles7c.continew.starter.log.common.dao.impl.LogDaoDefaultImpl; | import top.charles7c.continew.starter.log.core.dao.impl.LogDaoDefaultImpl; | ||||||
| import top.charles7c.continew.starter.log.httptracepro.handler.LogFilter; | import top.charles7c.continew.starter.log.httptracepro.handler.LogFilter; | ||||||
| import top.charles7c.continew.starter.log.httptracepro.handler.LogInterceptor; | import top.charles7c.continew.starter.log.httptracepro.handler.LogInterceptor; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ package top.charles7c.continew.starter.log.httptracepro.autoconfigure; | |||||||
|  |  | ||||||
| import org.springframework.boot.context.properties.ConfigurationProperties; | import org.springframework.boot.context.properties.ConfigurationProperties; | ||||||
| import top.charles7c.continew.starter.core.constant.PropertiesConstants; | import top.charles7c.continew.starter.core.constant.PropertiesConstants; | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
|  |  | ||||||
| import java.util.HashSet; | import java.util.HashSet; | ||||||
| import java.util.Set; | import java.util.Set; | ||||||
|   | |||||||
| @@ -26,7 +26,7 @@ import org.springframework.web.filter.OncePerRequestFilter; | |||||||
| import org.springframework.web.util.ContentCachingRequestWrapper; | import org.springframework.web.util.ContentCachingRequestWrapper; | ||||||
| import org.springframework.web.util.ContentCachingResponseWrapper; | import org.springframework.web.util.ContentCachingResponseWrapper; | ||||||
| import org.springframework.web.util.WebUtils; | import org.springframework.web.util.WebUtils; | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties; | import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties; | ||||||
|  |  | ||||||
| import java.io.IOException; | import java.io.IOException; | ||||||
|   | |||||||
| @@ -30,11 +30,11 @@ import org.springframework.boot.autoconfigure.web.ServerProperties; | |||||||
| import org.springframework.lang.NonNull; | import org.springframework.lang.NonNull; | ||||||
| import org.springframework.web.method.HandlerMethod; | import org.springframework.web.method.HandlerMethod; | ||||||
| import org.springframework.web.servlet.HandlerInterceptor; | import org.springframework.web.servlet.HandlerInterceptor; | ||||||
| import top.charles7c.continew.starter.log.common.annotation.Log; | import top.charles7c.continew.starter.log.core.annotation.Log; | ||||||
| import top.charles7c.continew.starter.log.common.dao.LogDao; | import top.charles7c.continew.starter.log.core.dao.LogDao; | ||||||
| import top.charles7c.continew.starter.log.common.enums.Include; | import top.charles7c.continew.starter.log.core.enums.Include; | ||||||
| import top.charles7c.continew.starter.log.common.model.LogRecord; | import top.charles7c.continew.starter.log.core.model.LogRecord; | ||||||
| import top.charles7c.continew.starter.log.common.model.LogResponse; | import top.charles7c.continew.starter.log.core.model.LogResponse; | ||||||
| import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties; | import top.charles7c.continew.starter.log.httptracepro.autoconfigure.LogProperties; | ||||||
|  |  | ||||||
| import java.time.Clock; | import java.time.Clock; | ||||||
|   | |||||||
| @@ -25,7 +25,7 @@ import org.springframework.web.util.ContentCachingRequestWrapper; | |||||||
| import org.springframework.web.util.UriUtils; | import org.springframework.web.util.UriUtils; | ||||||
| import org.springframework.web.util.WebUtils; | import org.springframework.web.util.WebUtils; | ||||||
| import top.charles7c.continew.starter.core.constant.StringConstants; | import top.charles7c.continew.starter.core.constant.StringConstants; | ||||||
| import top.charles7c.continew.starter.log.common.model.RecordableHttpRequest; | import top.charles7c.continew.starter.log.core.model.RecordableHttpRequest; | ||||||
|  |  | ||||||
| import java.net.URI; | import java.net.URI; | ||||||
| import java.net.URISyntaxException; | import java.net.URISyntaxException; | ||||||
|   | |||||||
| @@ -23,7 +23,7 @@ import jakarta.servlet.http.HttpServletResponse; | |||||||
| import org.springframework.web.util.ContentCachingResponseWrapper; | import org.springframework.web.util.ContentCachingResponseWrapper; | ||||||
| import org.springframework.web.util.WebUtils; | import org.springframework.web.util.WebUtils; | ||||||
| import top.charles7c.continew.starter.core.constant.StringConstants; | import top.charles7c.continew.starter.core.constant.StringConstants; | ||||||
| import top.charles7c.continew.starter.log.common.model.RecordableHttpResponse; | import top.charles7c.continew.starter.log.core.model.RecordableHttpResponse; | ||||||
| import top.charles7c.continew.starter.web.util.ServletUtils; | import top.charles7c.continew.starter.web.util.ServletUtils; | ||||||
|  |  | ||||||
| import java.util.*; | import java.util.*; | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|     <description>ContiNew Starter 日志模块</description> |     <description>ContiNew Starter 日志模块</description> | ||||||
|  |  | ||||||
|     <modules> |     <modules> | ||||||
|         <module>continew-starter-log-common</module> |         <module>continew-starter-log-core</module> | ||||||
|         <module>continew-starter-log-httptrace-pro</module> |         <module>continew-starter-log-httptrace-pro</module> | ||||||
|     </modules> |     </modules> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user