Add /logfile MVC actuator endpoint

Add a `/logfile` endpoint which can be used to fetch the contents of
the log file (if one is being used).

Fixes gh-2137
Closes gh-2294
This commit is contained in:
Johannes Stelzer
2015-01-06 20:10:48 +01:00
committed by Phillip Webb
parent 880f31ae2e
commit 308a5eaff5
9 changed files with 291 additions and 17 deletions

View File

@@ -643,6 +643,9 @@ content into your application; rather pick only the properties that you need.
endpoints.info.id=info
endpoints.info.sensitive=false
endpoints.info.enabled=true
endpoints.logfile.path=/logfile
endpoints.logfile.sensitive=true
endpoints.logfile.enabled=true
endpoints.mappings.enabled=true
endpoints.mappings.id=mappings
endpoints.mappings.sensitive=true

View File

@@ -94,6 +94,11 @@ unauthenticated connection or full message details when authenticated).
|Displays arbitrary application info.
|false
|`logfile`
|Returns the contents of the logfile (if `logging.file` or `logging.path` properties have
been set). Only available via MVC.
|true
|`metrics`
|Shows '`metrics`' information for the current application.
|true