0

我有一个带有 lombok 的 Spring Boot 应用程序,并且@Slf4j在大多数类中都有注释。在项目里面我有logback-spring.xml文件

此应用程序还使用 Documentum。在控制台中我看到:

0 [http-nio-9085-exec-2] ERROR com.documentum.fc.common.impl.logging.LoggingConfigurator  - Problem locating log4j configuration
17 [http-nio-9085-exec-2] WARN com.documentum.fc.common.impl.logging.LoggingConfigurator  - Using default log4j configuration

日志记录在我使用它的地方工作得很好。

如何使用我的日志记录配置 Documentum?

PS有时,并非总是(几乎从来没有,真的只是有时),就在控制台中的那些错误和警告行之后,我注意到应用程序重新启动,我不知道它是否相关。也许解决我可以解决的日志配置错误?这些只是下一行:

0 [http-nio-9085-exec-2] ERROR com.documentum.fc.common.impl.logging.LoggingConfigurator  - Problem locating log4j configuration
17 [http-nio-9085-exec-2] WARN com.documentum.fc.common.impl.logging.LoggingConfigurator  - Using default log4j configuration
Shutting down ExecutorService 'taskExecutor'
Closing JPA EntityManagerFactory for persistence unit 'default'
Handling #sessionFactoryClosed from [org.hibernate.internal.SessionFactoryImpl@77e72b75] for TypeConfiguration
Un-scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration$Scope@23fbc786] from SessionFactory [org.hibernate.internal.SessionFactoryImpl@77e72b75]
HikariPool-1 - Shutdown initiated...
HikariPool-1 - Shutdown completed.
Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6cf8547] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.8.RELEASE)
...
...
...
...
4

0 回答 0