Class LogFileMvcEndpoint

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, MvcEndpoint, NamedMvcEndpoint, org.springframework.context.EnvironmentAware, org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @ConfigurationProperties(prefix="endpoints.logfile")
    public class LogFileMvcEndpoint
    extends AbstractNamedMvcEndpoint
    Controller that provides an API for logfiles, i.e. downloading the main logfile configured in environment property 'logging.file' that is standard, but optional property for spring-boot applications.
    Since:
    1.3.0
    • Method Detail

      • invoke

        @RequestMapping(method={GET,HEAD})
        public void invoke​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
        Throws:
        javax.servlet.ServletException
        IOException