Skip to content

Spring Boot application for logging all the headers of client request and client's remote address ip

Notifications You must be signed in to change notification settings

kkaravitis/requestLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requestLogger

Spring Boot application for logging all the headers of client request and client's remote address ip

Requirements

jdk 8 or later

Usage

Get the release requestLogger-0.0.1-SNAPSHOT.jar from the release tab .

Open a terminal, command line inside the folder which includes the jar you downloaded during the previous step and run

java -jar requestLogger-0.0.1.jar --logging.file=/home/kostas/request-logger.log

where --loging.file property is the path of your logging file. I use linux and my path is /home/kostas/request-logger.log. For windows should be something like C:\users\[username]\

After application startup open your browser and by browsing to http://localhost:8080 you will see your request details to be logged on your logging.file.

In case you want to change the default 8080 port run the application with server.port property changed with your port, for example if you want to run the application on port 8888, run the following command:

java -jar requestLogger-0.0.1.jar --logging.file=[path to logging file] --server.port=8888

About

Spring Boot application for logging all the headers of client request and client's remote address ip

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages