Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DimondKudzai/log_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ Log Analyzer

A lightweight Node.js utility that logs server activity to a server.log file. It captures incoming HTTP requests, timestamps, and server events β€” perfect for debugging, monitoring, and learning how logging works under the hood.


πŸš€ Features

  • βœ… Logs every request with timestamp and method
  • βœ… Auto-creates server.log if it doesn't exist
  • βœ… Simple, dependency-free implementation
  • βœ… Easy to extend with log levels, rotation, or file streaming

πŸ“ Project Structure

log_analyzer/ β”œβ”€β”€ app.js # Main server file β”œβ”€β”€ server.log # Auto-generated log file (ignored in Git) β”œβ”€β”€ README.md # Project documentation └── data/ # Optional folder for log storage (auto-created)

`


πŸ› οΈ Getting Started

  1. Clone the repo
git clone                                           
cd log-analyzer
`

2. Run the server
node app.js

You’ll see:
Server started on port 3000

And a `server.log` file will appear with entries like:
[2025-07-30T12:00:00.000Z] GET /
[2025-07-30T12:00:0505.000Z] GET /about

πŸ“Œ To-Do (Optional Enhancements)
- [ ] Add log levels (info, warn, error)
- [ ] Implement log rotation
- [ ] Export logs as JSON
- [ ] Add unit tests
πŸ“„ License
MIT β€” free to use and modify.
πŸ™‹β€β™‚οΈ Author
*Dimond Madechawo*
https://github.com/dimondkudzai

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors