embedded in SpringBoot does not find files **/*.log, only spring.log #87
Replies: 2 comments 1 reply
-
The purpose of As a workaround, you can create a spring bean implementing
Also, you have to override the security manager, by default it hides all files except the configured logs ("spring.log" only is visible). You have to override the bean created in I must to improve the documentation... |
Beta Was this translation helpful? Give feedback.
-
Log viewer loads configuration properties from the spring context, you can define the properties as regular spring properties. |
Beta Was this translation helpful? Give feedback.
-
I have embedded log-viewer into SpringBoot application.
We have a logback- configuration which renames log files every night, so there are logfiles like
spring.log.2021-11-29.log
spring.log.2021-11-30.log
spring.log.2021-11-01.log
spring.log
(this is the one of "today")The documentation says:
"The default configuration gives access to all files with ".log" extension: **/*.log"
However, in the frontend I can only see
spring.log
, not the others. If I write aLogConfigurationLoader
(as in your example "demo/spring-boot-2.0") and list the files of the log directory, I get the other files listed as "favourites". But this list is calculated only at server startup, so I will never show files created afterwards.How can I get access to all files named *.log as the documentation says? (The documentation describes how to write a configuration file
log-viewer-1.0.1/config.conf
, but how to do it when embedded in SpringBoot application?)The app looks great! So I would like to use it, but I need all files. Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions