<<<<<<< HEAD
Logging Utilities
This project provides simple logging utilities in both Python and JavaScript. You can add, read, edit, and delete log entries using either language. All logs are stored in a file named log.txt in the same directory.
Python Logger
Requirements
- Python 3.x (no external libraries required)
Installation
No installation is required for Python. Just ensure you have Python 3 installed.
Usage
- Place
logger.pyin your project directory. - Run the logger with:
- You will see a menu:
- Add log entry
- Read all log entries
- Edit a log entry
- Delete a log entry
- Exit
- Follow the prompts to manage your log entries interactively.
JavaScript Logger
Requirements
- Node.js
readline-syncpackage (for interactive CLI)
Installation
- Place
logger.jsin your project directory. - Install the required package (only needed once):
Usage
- Run the logger with:
- You will see a menu:
- Add log entry
- Read all log entries
- Edit a log entry
- Delete a log entry
- Exit
- Follow the prompts to manage your log entries interactively.
Notes
- Both loggers use the same
log.txtfile by default. If you use both in the same directory, they will operate on the same log file. - All functions are commented for clarity.
License
This project is open source and free to use.
Logging Utilities (NO API)
This utility does NOT use any external APIs. All logging is managed locally for learning and experimentation.
This project provides simple logging utilities in both Python and JavaScript. You can add, read, edit, and delete log entries using either language. All logs are stored in a file named log.txt in the same directory.
Features
- Add, read, edit, and delete log entries
- Works in both Python and Node.js
- Interactive CLI menu
- Beginner-friendly: All code is commented for learning
Requirements
- Python 3.x (no external libraries required)
- Node.js (for JavaScript version)
readline-syncpackage for Node.js:
Setup
- Clone or download this repository.
- For Python:
- Place
logger.pyin your project directory. - For Node.js:
- Place
logger.jsin your project directory. - Install the required package:
Usage Workflow (Step-by-Step)
- Run the logger:
- For Python:
- For Node.js:
- Follow the menu prompts to add, read, edit, or delete log entries.
No real market data is used. This is for learning only!
Educational Notes
- No API: All logging is managed in Python or JavaScript, so you can see and modify the logic yourself.
- How does it work? The code is structured with functions and file I/O, with comments explaining each step.
- How can you extend it? Try adding timestamps, or exporting logs to CSV!
License
MIT
8944b09 (Initial commit: Comprehensive Python & JS Finance Utilities for Beginners (API & API-free, with detailed docs))