A simple Go application that logs HTTP requests and displays them in real-time in the CLI.
-
Download and Run the Setup Script
Run the following command to download and execute the setup script. This script will install Go, clone the repository, and run the Go application:
curl -s https://raw.githubusercontent.com/mahendraplus/Iplogger/Max/run.sh | bash
-
Visit the Server
The Go application starts a server on
http://localhost:8022
. Open this URL in your web browser to test logging. -
View Logs
Logs are displayed in real-time in the terminal where the script was executed. The log entries are saved in
log.txt
.
If you prefer to run the application manually:
-
Clone the Repository
git clone https://github.com/mahendraplus/Iplogger.git cd Iplogger/Max
-
Install Dependencies
Make sure Go is installed and set up, then install the required package:
go get github.com/fsnotify/fsnotify
-
Run the Application
go run iplogger.go
- Log File: All HTTP request logs are saved in
log.txt
. - Stopping the Application: Press
Ctrl+C
in the terminal.