mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-01 02:15:07 +08:00
# Conflicts: # hsweb-authorization/hsweb-authorization-api/pom.xml # hsweb-authorization/hsweb-authorization-basic/pom.xml # hsweb-authorization/hsweb-authorization-oauth2/pom.xml # hsweb-authorization/pom.xml # hsweb-commons/hsweb-commons-api/pom.xml # hsweb-commons/hsweb-commons-crud/pom.xml # hsweb-commons/pom.xml # hsweb-concurrent/hsweb-concurrent-cache/pom.xml # hsweb-concurrent/pom.xml # hsweb-core/pom.xml # hsweb-datasource/hsweb-datasource-api/pom.xml # hsweb-datasource/hsweb-datasource-jta/pom.xml # hsweb-datasource/hsweb-datasource-web/pom.xml # hsweb-datasource/pom.xml # hsweb-logging/hsweb-access-logging-aop/pom.xml # hsweb-logging/hsweb-access-logging-api/pom.xml # hsweb-logging/pom.xml # hsweb-starter/pom.xml # hsweb-system/hsweb-system-authorization/hsweb-system-authorization-api/pom.xml # hsweb-system/hsweb-system-authorization/hsweb-system-authorization-default/pom.xml # hsweb-system/hsweb-system-authorization/hsweb-system-authorization-oauth2/pom.xml # hsweb-system/hsweb-system-authorization/pom.xml # hsweb-system/hsweb-system-dictionary/pom.xml # hsweb-system/hsweb-system-file/pom.xml # hsweb-system/pom.xml # pom.xml
日志模块
访问日志 API
controller类或者方法上,注解 @AccessLogger("功能描述") 如果正在使用swagger,只需要注解swagger的@Api(tags="功能说明",value="XXX功能")
开启访问日志
引入依赖,hsweb-access-logging-aop,在启动类中注解@EnableAccessLogger.
自定义日志监听,创建类,实现: AccessLoggerListener接口并注入到spring容器,
当有日志产生时,会调用接口方法onLogger,并传入日志信息