BAEL-2927 added logging configuration for tomcat logs (#6967)

This commit is contained in:
Sumeet Gajbhar 2019-05-22 20:06:43 +05:30 committed by Josh Cummings
parent e5f3b0f1e6
commit cb810de745
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,14 @@
package com.baeldung.springbootconfiguration.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class GreetingsController {
@GetMapping("/greetings/{username}")
public String getGreetings(@PathVariable("username") String userName) {
return "Hello " + userName + ", Good day...!!!";
}
}

View File

@ -1,5 +1,5 @@
# server configuration
server.port=80
server.port=4010
server.address=127.0.0.1
## Error handling configuration
@ -21,3 +21,9 @@ server.tomcat.accesslog.directory=logs
server.tomcat.accesslog.file-date-format=yyyy-MM-dd
server.tomcat.accesslog.prefix=access_log
server.tomcat.accesslog.suffix=.log
server.tomcat.accesslog.pattern=common
server.tomcat.basedir=tomcat
## Tomcat internal server logs
logging.level.org.apache.tomcat=DEBUG
logging.level.org.apache.catalina=DEBUG

View File

@ -1 +1 @@
spring.profiles.active=tomcat