add log path
This commit is contained in:
parent
836df871ef
commit
a43a3831cd
17
.idea/workspace.xml
generated
17
.idea/workspace.xml
generated
@ -3,15 +3,11 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="e4baaf01-a2c2-445d-98a1-9f4c50c148cf" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application-dev.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/application-prod.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application-prod.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/application-test.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application-test.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/application-dev.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/application-prod.yml" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/application-prod.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/application-test.yml" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/application-test.yml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/com/lz/common/utils/DhgjSmsUtil.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/lz/common/utils/DhgjSmsUtil.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/com/lz/modules/sys/controller/SysLoginController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/lz/modules/sys/controller/SysLoginController.java" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/logback-spring.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/logback-spring.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/com/lz/common/utils/DhgjSmsUtil.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/lz/common/utils/DhgjSmsUtil.class" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/com/lz/modules/sys/controller/SysLoginController.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/lz/modules/sys/controller/SysLoginController.class" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/target/classes/logback-spring.xml" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/logback-spring.xml" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
@ -182,7 +178,7 @@
|
||||
<workItem from="1590038091791" duration="38394000" />
|
||||
<workItem from="1590136970394" duration="34977000" />
|
||||
<workItem from="1590560185803" duration="9619000" />
|
||||
<workItem from="1590633459230" duration="25890000" />
|
||||
<workItem from="1590633459230" duration="29568000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
@ -280,6 +276,11 @@
|
||||
<line>149</line>
|
||||
<option name="timeStamp" value="129" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="java-line">
|
||||
<url>file://$PROJECT_DIR$/src/main/java/com/lz/modules/sys/controller/SysLoginController.java</url>
|
||||
<line>170</line>
|
||||
<option name="timeStamp" value="130" />
|
||||
</line-breakpoint>
|
||||
</breakpoints>
|
||||
</breakpoint-manager>
|
||||
</component>
|
||||
|
||||
92
logback/api-all.log
Normal file
92
logback/api-all.log
Normal file
@ -0,0 +1,92 @@
|
||||
2020-06-02 22:25:17.610 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 Starting LinziApplication on fumeiaideMacBook-Pro.local with PID 32560 (/Users/fumeiai/workspace/enterpriseManagement/lz_management/target/classes started by fumeiai in /Users/fumeiai/workspace/enterpriseManagement/lz_management)
|
||||
2020-06-02 22:25:17.613 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 The following profiles are active: dev
|
||||
2020-06-02 22:25:18.287 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Multiple Spring Data modules found, entering strict repository configuration mode!
|
||||
2020-06-02 22:25:18.289 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2020-06-02 22:25:18.326 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Finished Spring Data repository scanning in 27ms. Found 0 Redis repository interfaces.
|
||||
2020-06-02 22:25:18.509 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'shiroConfig' of type [com.lz.config.ShiroConfig$$EnhancerBySpringCGLIB$$f418c3cf] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.594 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'mybatis-plus-com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.597 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'mybatisPlusConfig' of type [com.lz.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$cdc46d2b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.601 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'paginationInterceptor' of type [com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.606 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$8de0404a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.609 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamic-com.lz.datasource.properties.DynamicDataSourceProperties' of type [com.lz.datasource.properties.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.609 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamicDataSourceConfig' of type [com.lz.datasource.config.DynamicDataSourceConfig$$EnhancerBySpringCGLIB$$d0ca65] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.614 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dataSourceProperties' of type [com.lz.datasource.properties.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.173 [localhost,,] [main] INFO com.alibaba.druid.pool.DruidDataSource - 10.0.1.178 {dataSource-1} inited
|
||||
2020-06-02 22:25:24.174 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamicDataSource' of type [com.lz.datasource.config.DynamicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.685 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.690 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.690 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysMenuDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.692 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysMenuDao' of type [com.sun.proxy.$Proxy87] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.694 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.695 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserDao' of type [com.sun.proxy.$Proxy88] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.697 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserTokenDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.697 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserTokenDao' of type [com.sun.proxy.$Proxy89] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.698 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'shiroServiceImpl' of type [com.lz.modules.sys.service.impl.ShiroServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.698 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'OAuth2Realm' of type [com.lz.modules.sys.oauth2.OAuth2Realm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.830 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.867 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.888 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:25.193 [localhost,,] [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - 10.0.1.178 Tomcat initialized with port(s): 8080 (http)
|
||||
2020-06-02 22:25:25.199 [localhost,,] [main] INFO org.apache.catalina.core.StandardService - 10.0.1.178 Starting service [Tomcat]
|
||||
2020-06-02 22:25:25.200 [localhost,,] [main] INFO org.apache.catalina.core.StandardEngine - 10.0.1.178 Starting Servlet engine: [Apache Tomcat/9.0.30]
|
||||
2020-06-02 22:25:25.255 [localhost,,] [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/lz_management] - 10.0.1.178 Initializing Spring embedded WebApplicationContext
|
||||
2020-06-02 22:25:25.255 [localhost,,] [main] INFO org.springframework.web.context.ContextLoader - 10.0.1.178 Root WebApplicationContext: initialization completed in 7609 ms
|
||||
2020-06-02 22:25:25.897 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Using default implementation for ThreadExecutor
|
||||
2020-06-02 22:25:25.907 [localhost,,] [main] INFO org.quartz.core.SchedulerSignalerImpl - 10.0.1.178 Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2020-06-02 22:25:25.907 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Quartz Scheduler v.2.3.0 created.
|
||||
2020-06-02 22:25:25.912 [localhost,,] [main] INFO o.s.scheduling.quartz.LocalDataSourceJobStore - 10.0.1.178 Using db table-based data access locking (synchronization).
|
||||
2020-06-02 22:25:25.913 [localhost,,] [main] INFO o.s.scheduling.quartz.LocalDataSourceJobStore - 10.0.1.178 JobStoreCMT initialized.
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Scheduler meta-data: Quartz Scheduler (v2.3.0) 'LinziScheduler' with instanceId 'fumeiaideMacBook-Pro.local1591107925898'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 20 threads.
|
||||
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is clustered.
|
||||
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Quartz scheduler 'LinziScheduler' initialized from an externally provided properties instance.
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Quartz scheduler version: 2.3.0
|
||||
2020-06-02 22:25:25.915 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@682e445e
|
||||
2020-06-02 22:25:28.337 [localhost,,] [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping - 10.0.1.178 Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
|
||||
2020-06-02 22:25:28.618 [localhost,,] [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - 10.0.1.178 Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2020-06-02 22:25:28.860 [localhost,,] [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper - 10.0.1.178 Context refreshed
|
||||
2020-06-02 22:25:28.868 [localhost,,] [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper - 10.0.1.178 Found 1 custom documentation plugin(s)
|
||||
2020-06-02 22:25:28.890 [localhost,,] [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner - 10.0.1.178 Scanning for api listing references
|
||||
2020-06-02 22:25:28.983 [localhost,,] [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator - 10.0.1.178 Generating unique operation named: userInfoUsingGET_1
|
||||
2020-06-02 22:25:28.990 [localhost,,] [main] INFO o.s.scheduling.quartz.SchedulerFactoryBean - 10.0.1.178 Will start Quartz Scheduler [LinziScheduler] in 30 seconds
|
||||
2020-06-02 22:25:29.022 [localhost,,] [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - 10.0.1.178 Tomcat started on port(s): 8080 (http) with context path '/lz_management'
|
||||
2020-06-02 22:25:29.024 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 Started LinziApplication in 12.044 seconds (JVM running for 12.78)
|
||||
2020-06-02 22:25:58.994 [localhost,,] [Quartz Scheduler [LinziScheduler]] INFO o.s.scheduling.quartz.SchedulerFactoryBean - 10.0.1.178 Starting Quartz Scheduler now, after delay of 30 seconds
|
||||
2020-06-02 22:25:59.377 [localhost,,] [Quartz Scheduler [LinziScheduler]] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Scheduler LinziScheduler_$_fumeiaideMacBook-Pro.local1591107925898 started.
|
||||
2020-06-02 22:27:06.471 [localhost,,] [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/lz_management] - 10.0.1.178 Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2020-06-02 22:27:06.472 [localhost,,] [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - 10.0.1.178 Initializing Servlet 'dispatcherServlet'
|
||||
2020-06-02 22:27:06.480 [localhost,,] [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - 10.0.1.178 Completed initialization in 8 ms
|
||||
2020-06-02 22:27:06.498 [localhost,,] [http-nio-8080-exec-1] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 ==> Preparing: select * from sys_user_token where token = ?
|
||||
2020-06-02 22:27:06.505 [localhost,,] [http-nio-8080-exec-1] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 ==> Parameters: 0c040e85291e654c25e2e8929dd77c3b(String)
|
||||
2020-06-02 22:27:06.520 [localhost,,] [http-nio-8080-exec-1] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 <== Total: 1
|
||||
2020-06-02 22:27:06.521 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 ==> Preparing: SELECT user_id,real_name,user_no,username,password,mobile,salt,email,status,create_user_id,create_time FROM sys_user WHERE user_id=?
|
||||
2020-06-02 22:27:06.522 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 ==> Parameters: 2(Long)
|
||||
2020-06-02 22:27:06.566 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 <== Total: 1
|
||||
2020-06-02 22:27:06.592 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 ==> Preparing: select m.perms from sys_user_role ur LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id LEFT JOIN sys_menu m on rm.menu_id = m.menu_id where ur.user_id = ?
|
||||
2020-06-02 22:27:06.593 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 ==> Parameters: 2(Long)
|
||||
2020-06-02 22:27:06.627 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 <== Total: 72
|
||||
2020-06-02 22:27:06.636 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getUserInfos - 10.0.1.178 ==> Preparing: select su.*,GROUP_CONCAT(sr.role_name) role_name from sys_user su left join sys_user_role sur on su.user_id=sur.user_id left join sys_role sr on sur.role_id=sr.role_id where 1=1 and su.create_user_id =? GROUP BY su.user_id limit ?, ?
|
||||
2020-06-02 22:27:06.638 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getUserInfos - 10.0.1.178 ==> Parameters: 2(Long), 0(Integer), 20(Integer)
|
||||
2020-06-02 22:27:06.679 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getUserInfos - 10.0.1.178 <== Total: 2
|
||||
2020-06-02 22:27:06.681 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getTotalCount - 10.0.1.178 ==> Preparing: select count(DISTINCT(su.user_id)) from sys_user su left join sys_user_role sur on su.user_id=sur.user_id left join sys_role sr on sur.role_id=sr.role_id where 1=1 and su.create_user_id =?
|
||||
2020-06-02 22:27:06.682 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getTotalCount - 10.0.1.178 ==> Parameters: 2(Long)
|
||||
2020-06-02 22:27:06.730 [localhost,,] [http-nio-8080-exec-1] DEBUG com.lz.modules.sys.dao.SysUserDao.getTotalCount - 10.0.1.178 <== Total: 1
|
||||
2020-06-02 22:27:07.918 [localhost,,] [http-nio-8080-exec-2] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 ==> Preparing: select * from sys_user_token where token = ?
|
||||
2020-06-02 22:27:07.918 [localhost,,] [http-nio-8080-exec-2] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 ==> Parameters: 0c040e85291e654c25e2e8929dd77c3b(String)
|
||||
2020-06-02 22:27:07.927 [localhost,,] [http-nio-8080-exec-2] DEBUG c.lz.modules.sys.dao.SysUserTokenDao.queryByToken - 10.0.1.178 <== Total: 1
|
||||
2020-06-02 22:27:07.928 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 ==> Preparing: SELECT user_id,real_name,user_no,username,password,mobile,salt,email,status,create_user_id,create_time FROM sys_user WHERE user_id=?
|
||||
2020-06-02 22:27:07.928 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 ==> Parameters: 2(Long)
|
||||
2020-06-02 22:27:07.980 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.selectById - 10.0.1.178 <== Total: 1
|
||||
2020-06-02 22:27:07.982 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 ==> Preparing: select m.perms from sys_user_role ur LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id LEFT JOIN sys_menu m on rm.menu_id = m.menu_id where ur.user_id = ?
|
||||
2020-06-02 22:27:07.982 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 ==> Parameters: 2(Long)
|
||||
2020-06-02 22:27:08.048 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysUserDao.queryAllPerms - 10.0.1.178 <== Total: 72
|
||||
2020-06-02 22:27:08.080 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysRoleDao.selectPage - 10.0.1.178 ==> Preparing: SELECT COUNT(1) FROM sys_role
|
||||
2020-06-02 22:27:08.081 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysRoleDao.selectPage - 10.0.1.178 ==> Parameters:
|
||||
2020-06-02 22:27:08.104 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysRoleDao.selectPage - 10.0.1.178 ==> Preparing: SELECT role_id,role_name,remark,create_user_id,create_time FROM sys_role LIMIT ?,?
|
||||
2020-06-02 22:27:08.105 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysRoleDao.selectPage - 10.0.1.178 ==> Parameters: 0(Long), 20(Long)
|
||||
2020-06-02 22:27:08.150 [localhost,,] [http-nio-8080-exec-2] DEBUG com.lz.modules.sys.dao.SysRoleDao.selectPage - 10.0.1.178 <== Total: 10
|
||||
0
logback/api-error.log
Normal file
0
logback/api-error.log
Normal file
63
logback/api-info.log
Normal file
63
logback/api-info.log
Normal file
@ -0,0 +1,63 @@
|
||||
2020-06-02 22:25:17.610 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 Starting LinziApplication on fumeiaideMacBook-Pro.local with PID 32560 (/Users/fumeiai/workspace/enterpriseManagement/lz_management/target/classes started by fumeiai in /Users/fumeiai/workspace/enterpriseManagement/lz_management)
|
||||
2020-06-02 22:25:17.613 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 The following profiles are active: dev
|
||||
2020-06-02 22:25:18.287 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Multiple Spring Data modules found, entering strict repository configuration mode!
|
||||
2020-06-02 22:25:18.289 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2020-06-02 22:25:18.326 [localhost,,] [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate - 10.0.1.178 Finished Spring Data repository scanning in 27ms. Found 0 Redis repository interfaces.
|
||||
2020-06-02 22:25:18.509 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'shiroConfig' of type [com.lz.config.ShiroConfig$$EnhancerBySpringCGLIB$$f418c3cf] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.594 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'mybatis-plus-com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.597 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'mybatisPlusConfig' of type [com.lz.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$cdc46d2b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.601 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'paginationInterceptor' of type [com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.606 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration' of type [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$8de0404a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.609 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamic-com.lz.datasource.properties.DynamicDataSourceProperties' of type [com.lz.datasource.properties.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.609 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamicDataSourceConfig' of type [com.lz.datasource.config.DynamicDataSourceConfig$$EnhancerBySpringCGLIB$$d0ca65] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:18.614 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dataSourceProperties' of type [com.lz.datasource.properties.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.173 [localhost,,] [main] INFO com.alibaba.druid.pool.DruidDataSource - 10.0.1.178 {dataSource-1} inited
|
||||
2020-06-02 22:25:24.174 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'dynamicDataSource' of type [com.lz.datasource.config.DynamicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.685 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.690 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.690 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysMenuDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.692 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysMenuDao' of type [com.sun.proxy.$Proxy87] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.694 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.695 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserDao' of type [com.sun.proxy.$Proxy88] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.697 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserTokenDao' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.697 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'sysUserTokenDao' of type [com.sun.proxy.$Proxy89] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.698 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'shiroServiceImpl' of type [com.lz.modules.sys.service.impl.ShiroServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.698 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'OAuth2Realm' of type [com.lz.modules.sys.oauth2.OAuth2Realm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.830 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.867 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:24.888 [localhost,,] [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - 10.0.1.178 Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
|
||||
2020-06-02 22:25:25.193 [localhost,,] [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - 10.0.1.178 Tomcat initialized with port(s): 8080 (http)
|
||||
2020-06-02 22:25:25.199 [localhost,,] [main] INFO org.apache.catalina.core.StandardService - 10.0.1.178 Starting service [Tomcat]
|
||||
2020-06-02 22:25:25.200 [localhost,,] [main] INFO org.apache.catalina.core.StandardEngine - 10.0.1.178 Starting Servlet engine: [Apache Tomcat/9.0.30]
|
||||
2020-06-02 22:25:25.255 [localhost,,] [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/lz_management] - 10.0.1.178 Initializing Spring embedded WebApplicationContext
|
||||
2020-06-02 22:25:25.255 [localhost,,] [main] INFO org.springframework.web.context.ContextLoader - 10.0.1.178 Root WebApplicationContext: initialization completed in 7609 ms
|
||||
2020-06-02 22:25:25.897 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Using default implementation for ThreadExecutor
|
||||
2020-06-02 22:25:25.907 [localhost,,] [main] INFO org.quartz.core.SchedulerSignalerImpl - 10.0.1.178 Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2020-06-02 22:25:25.907 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Quartz Scheduler v.2.3.0 created.
|
||||
2020-06-02 22:25:25.912 [localhost,,] [main] INFO o.s.scheduling.quartz.LocalDataSourceJobStore - 10.0.1.178 Using db table-based data access locking (synchronization).
|
||||
2020-06-02 22:25:25.913 [localhost,,] [main] INFO o.s.scheduling.quartz.LocalDataSourceJobStore - 10.0.1.178 JobStoreCMT initialized.
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Scheduler meta-data: Quartz Scheduler (v2.3.0) 'LinziScheduler' with instanceId 'fumeiaideMacBook-Pro.local1591107925898'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 20 threads.
|
||||
Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is clustered.
|
||||
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Quartz scheduler 'LinziScheduler' initialized from an externally provided properties instance.
|
||||
2020-06-02 22:25:25.914 [localhost,,] [main] INFO org.quartz.impl.StdSchedulerFactory - 10.0.1.178 Quartz scheduler version: 2.3.0
|
||||
2020-06-02 22:25:25.915 [localhost,,] [main] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@682e445e
|
||||
2020-06-02 22:25:28.337 [localhost,,] [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping - 10.0.1.178 Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
|
||||
2020-06-02 22:25:28.618 [localhost,,] [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - 10.0.1.178 Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2020-06-02 22:25:28.860 [localhost,,] [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper - 10.0.1.178 Context refreshed
|
||||
2020-06-02 22:25:28.868 [localhost,,] [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper - 10.0.1.178 Found 1 custom documentation plugin(s)
|
||||
2020-06-02 22:25:28.890 [localhost,,] [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner - 10.0.1.178 Scanning for api listing references
|
||||
2020-06-02 22:25:28.983 [localhost,,] [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator - 10.0.1.178 Generating unique operation named: userInfoUsingGET_1
|
||||
2020-06-02 22:25:28.990 [localhost,,] [main] INFO o.s.scheduling.quartz.SchedulerFactoryBean - 10.0.1.178 Will start Quartz Scheduler [LinziScheduler] in 30 seconds
|
||||
2020-06-02 22:25:29.022 [localhost,,] [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - 10.0.1.178 Tomcat started on port(s): 8080 (http) with context path '/lz_management'
|
||||
2020-06-02 22:25:29.024 [localhost,,] [main] INFO com.lz.LinziApplication - 10.0.1.178 Started LinziApplication in 12.044 seconds (JVM running for 12.78)
|
||||
2020-06-02 22:25:58.994 [localhost,,] [Quartz Scheduler [LinziScheduler]] INFO o.s.scheduling.quartz.SchedulerFactoryBean - 10.0.1.178 Starting Quartz Scheduler now, after delay of 30 seconds
|
||||
2020-06-02 22:25:59.377 [localhost,,] [Quartz Scheduler [LinziScheduler]] INFO org.quartz.core.QuartzScheduler - 10.0.1.178 Scheduler LinziScheduler_$_fumeiaideMacBook-Pro.local1591107925898 started.
|
||||
2020-06-02 22:27:06.471 [localhost,,] [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/lz_management] - 10.0.1.178 Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
2020-06-02 22:27:06.472 [localhost,,] [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - 10.0.1.178 Initializing Servlet 'dispatcherServlet'
|
||||
2020-06-02 22:27:06.480 [localhost,,] [http-nio-8080-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - 10.0.1.178 Completed initialization in 8 ms
|
||||
@ -1,23 +1,80 @@
|
||||
<!--<?xml version="1.0" encoding="UTF-8"?>-->
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="TRACE" />
|
||||
<!-- 定义log文件的目录 -->
|
||||
<property name="LOG_HOME" value="./logback"></property>
|
||||
<!-- 加载 Spring 配置文件信息 -->
|
||||
<springProperty scope="context" name="applicationName" source="spring.application.name" defaultValue="localhost"/>
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [${applicationName},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-}] [%thread] %-5level %logger{50} - %msg%n"/>
|
||||
|
||||
<!-- 开发、测试环境 -->
|
||||
<springProfile name="dev,test">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<!-- <logger name="com.lz.modules.sys.dao" level="DEBUG" />-->
|
||||
<!-- <logger name="com.lz.modules.app.dao" level="DEBUG" />-->
|
||||
<logger name="io.lz" level="DEBUG" />
|
||||
</springProfile>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
</appender>
|
||||
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-info.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-info.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
<!--文件保存6个月-->
|
||||
<!-- <maxHistory>180</maxHistory>-->>
|
||||
<!--总文件日志最大的大小-->
|
||||
<!--<totalSizeCap>100GB</totalSizeCap> -->
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
</appender>
|
||||
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-error.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
<appender name="ALL_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-all.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-all.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 生产环境 -->
|
||||
<springProfile name="prod">
|
||||
<logger name="org.springframework.web" level="ERROR"/>
|
||||
<logger name="org.springboot.sample" level="ERROR" />
|
||||
<logger name="io.lz" level="ERROR" />
|
||||
</springProfile>
|
||||
|
||||
<logger name="com.lz.modules.sys.dao" level="DEBUG"></logger>
|
||||
<logger name="com.lz.modules.app.dao" level="DEBUG"></logger>
|
||||
<logger name="io.lz" level="DEBUG" />
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="INFO_FILE"/>
|
||||
<appender-ref ref="ERROR_FILE"/>
|
||||
<appender-ref ref="ALL_FILE"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -1,23 +1,80 @@
|
||||
<!--<?xml version="1.0" encoding="UTF-8"?>-->
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="TRACE" />
|
||||
<!-- 定义log文件的目录 -->
|
||||
<property name="LOG_HOME" value="./logback"></property>
|
||||
<!-- 加载 Spring 配置文件信息 -->
|
||||
<springProperty scope="context" name="applicationName" source="spring.application.name" defaultValue="localhost"/>
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [${applicationName},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-}] [%thread] %-5level %logger{50} - %msg%n"/>
|
||||
|
||||
<!-- 开发、测试环境 -->
|
||||
<springProfile name="dev,test">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<!-- <logger name="com.lz.modules.sys.dao" level="DEBUG" />-->
|
||||
<!-- <logger name="com.lz.modules.app.dao" level="DEBUG" />-->
|
||||
<logger name="io.lz" level="DEBUG" />
|
||||
</springProfile>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
</appender>
|
||||
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-info.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-info.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
<!--文件保存6个月-->
|
||||
<!-- <maxHistory>180</maxHistory>-->>
|
||||
<!--总文件日志最大的大小-->
|
||||
<!--<totalSizeCap>100GB</totalSizeCap> -->
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>INFO</level>
|
||||
</filter>
|
||||
</appender>
|
||||
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-error.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
<appender name="ALL_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${LOG_HOME}/api-all.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/logs/api-all.%d{yyyy-MM-dd }.%i.log</fileNamePattern>
|
||||
<!--单文件日志最大的大小-->
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
<!--日志文件输出格式-->
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
<charset>UTF-8</charset> <!-- 设置字符集 -->
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 生产环境 -->
|
||||
<springProfile name="prod">
|
||||
<logger name="org.springframework.web" level="ERROR"/>
|
||||
<logger name="org.springboot.sample" level="ERROR" />
|
||||
<logger name="io.lz" level="ERROR" />
|
||||
</springProfile>
|
||||
|
||||
<logger name="com.lz.modules.sys.dao" level="DEBUG"></logger>
|
||||
<logger name="com.lz.modules.app.dao" level="DEBUG"></logger>
|
||||
<logger name="io.lz" level="DEBUG" />
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="INFO_FILE"/>
|
||||
<appender-ref ref="ERROR_FILE"/>
|
||||
<appender-ref ref="ALL_FILE"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user