This repository contains the source code for a lightweight, console-based logging utility designed to manage development logs, structured to mimic a small console application. The primary component is the DevLog v1.0 application (retro_logger.cpp).
The retro_logger application provides a simple command-line interface for managing development entries:
- Daily Logs: Automatically creates and writes entries to a new log file (
log_YYYY-MM-DD.log) each day, stored in the/datadirectory. - Log Levels: Supports standard log levels (
debug,info,warning,error,critical) with console color coding. - CRUD Operations: Allows for Create, Read (today's or All logs), Update, and Delete (soft-delete) operations directly within the command line interface.
- Windows API: Leverages Windows API calls for console manipulation (colors, screen clear, title).
This project uses CMake for cross-platform build configuration (though the C++ code is currently Windows-specific due to the use of <windows.h> and _mkdir).
- A C++ Compiler (e.g., GCC, Clang, MSVC)
- CMake (version 3.15 or newer is recommended)
- Git
-
Clone the Repository:
git clone [https://github.com/YourUsername/retro_console.git](https://github.com/YourUsername/retro_console.git) cd retro_console -
Configure CMake: This command generates the necessary build files (like Visual Studio solutions or Makefiles) in the
builddirectory.cmake -S . -B build -
Build the Executable: This command compiles the code.
cmake --build build
The executable will be generated within the build directory (e.g., build/Debug/retro_logger.exe or similar, depending on your compiler).
To run the logger:
.\build\Debug\retro_logger.exe