Git Product home page Git Product logo

rust-a-log's Introduction

Rust-a-Log

use case

Rust a Log is a simple and efficient log viewer, made with the Rust programming language. It has a user-friendly interface, with real-time updating and color-coded log levels, making it easy to quickly identify and analyze your logs.

Features

  • BUILD WITH RUST
  • Real-time updating of logs
  • Color-coded log levels for quick identification
  • User-friendly interface
  • Supports multiple log levels (ERROR, WARNING, INFO, SUCCESS)
  • Works with any text-based log file

Usage

To use Rust a Log, you first need to have somewhere in your log labels like this:

[WARNING]
[ERROR]
[INFO]
[SUCCESS]

If these labels are not present it will work like tail -f (just build for the future generations in RUST)

Simply run the binary with the path to the log file as an argument:

./rual path/to/log <optionalNumOfLines>

It can be also used with named arguments:

./rual -f path/to/log [--error -e] [--info -i] [--success -s] --follow -f

Arguments listed in [] are filters, and --follow is used to follow the log file

The app will start by reading the last 10 lines (if not specified otherwise) of the log file, or all of the lines if the log file has less than 10 lines. The app will then continue to monitor the log file for new lines, updating the log output in real-time.

Contributing

We welcome contributions to Rust a Log! If you have an idea for a new feature or have found a bug, feel free to open a pull request or issue on our GitHub repository.

License

Rust a Log is open-source software, released under the MIT License. This means that you are free to use, modify, and distribute the software, as long as you include the original copyright and license notice.

Disclaimer

I am fairly new to RUST, my first RUST Repo

Future Plans

  • Add more log filters
  • Create a rust library to produce the log file which this app can read
  • Profit

rust-a-log's People

Contributors

m1chlcz avatar tusharxoxoxo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tusharxoxoxo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.