A simple Java-based Command-Line Interface (CLI) tool to monitor and log application usage on your local machine. Built for educational purposes, this project demonstrates Java features, clean architecture principles, and interaction with the operating system.
- Real-time Tracking: Runs a background process to detect and log newly opened applications as they happen.
- Daily Reports: Instantly generate a summary of today's application usage directly in your terminal.
- Live Process List: Get a snapshot of all currently running processes, similar to a mini Task Manager.
- CLI-Based: Lightweight, fast, and runs entirely from the command line.
- Cross-Platform: Built with Java, it runs on Windows, macOS, and Linux.
- Java 21: Built using a modern version of Java.
- Maven: For project build and dependency management.
- Picocli: A powerful framework for creating elegant, user-friendly command-line applications.
To run this application, you only need:
- Java Runtime Environment (JRE) version 11 or newer.
- Go to the Releases Page on this repository.
- Follow the instructions below based on your Operating System.
Important: You must place all downloaded files into the same folder for the application to work.
Here is a complete list of available commands:
| Command | Description |
|---|---|
start |
Starts the monitor in the background to log any new application you open. |
report |
Generates and displays a summary of today's logged activity. |
list |
Shows a snapshot of all processes currently running on your system. |
--help |
Displays this help message with a list of all commands. |
--version |
Shows the application's version information. |
- From the latest release, download these two files:
ActivityLog-1.0-SNAPSHOT.jaractivitylog.bat
- Place both files in a new folder.
- Open a Command Prompt/PowerShell inside that folder.
- Run a command, for example:
.\activitylog.bat report
- From the latest release, download these two files:
ActivityLog-1.0-SNAPSHOT.jaractivitylog(the file with no extension)
- Place both files in a new folder.
- Open your Terminal inside that folder.
- Run this once to make the script executable:
chmod +x activitylog - Run a command, for example:
./activitylog report
