Java 如何在aws cloudwatch中禁用调试日志
我想将日志级别设置为info(使用springboot)。我通过application.properties进行了限制Java 如何在aws cloudwatch中禁用调试日志,java,amazon-web-services,spring-boot,amazon-s3,Java,Amazon Web Services,Spring Boot,Amazon S3,我想将日志级别设置为info(使用springboot)。我通过application.properties进行了限制 logging.level.root=INFO logging.level.org.springframework.web=INFO logging.level.org.hibernate=ERROR 在本地作为独立应用程序运行良好 当我转换为aws lambda时,它不会将日志级别设置为info并获取不需要的默认调试日志。请看下面的日志 10:15:35 10:15:35
logging.level.root=INFO
logging.level.org.springframework.web=INFO
logging.level.org.hibernate=ERROR
在本地作为独立应用程序运行良好
当我转换为aws lambda时,它不会将日志级别设置为info并获取不需要的默认调试日志。请看下面的日志
10:15:35
10:15:35.140 [main] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@77167fb7
10:15:35.140 [main] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@77167fb7
10:15:35
10:15:35.178 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
10:15:35
10:15:35.560 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor'
10:15:35
10:15:35.563 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
10:15:35
10:15:35.566 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
10:15:35
10:15:35.568 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
10:15:35
10:15:35.584 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'webConfigLambda'
10:15:35
10:15:35.591 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'getRestTemplate'
10:15:36
10:15:36.263 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean '
请帮我解决这个问题