Simple logfile viewer as spring boot actuator endpoint
Features
- allow quick access to spring-boot web application logfiles
- uses actuator framework to provide management endpoint
- list log folder content
- view individual logfiles
- view content of log archives (*.zip, *.tar.gz)
- browse subdirectories
- search in (non-compressed) files in logging root folder
- tail without reading entire file
Howto use
- include library on classpath of spring-boot app
- configure logging.path in spring environment (alternatively - when using custom logging configuration or logging.file - use endpoints.logview.path)
- endpoint will be available under /log
Maven
<dependency>
<groupId>eu.hinsch</groupId>
<artifactId>spring-boot-actuator-logview</artifactId>
<version>0.2.6</version>
</dependency>
Gradle
compile 'eu.hinsch:spring-boot-actuator-logview:0.2.6'
Note
- lib depends on spring-boot-starter-freemarker, so it may currently not work with another templating engine for the main app