GithubHelp home page GithubHelp logo

logrust's Introduction

LogRust

A log file viewer written in Rust using iced-rs

Currently, unusable. It only counts occurrences of specific log levels and displays them in a UI. Nevertheless, it does so in an extremely fast manner (on my machine, it takes around 15 seconds to scan a ~4.5 Gb file with ~23.5 million lines)

As the name implies, this is pretty much a toy project. I always wanted to get into Rust while also trying some kind of UI framework. And I happened to need some library that could open and filter large logs by their log level so here we are

logrust's People

Contributors

curtisy1 avatar

Watchers

 avatar

logrust's Issues

Scrollview for the actual log file content

Displaying the actual content is probably the hardest task. There's quite a few things to be aware of:

  • For performance concerns, we should only load about 2 or 3 times the window height of lines. This allows the user to scroll a bit while we dynamically load more data
  • When changing filter criteria the scroll state should probably be reset since the scroll state might have changed

Theming

We need a dark mode at least. Maybe add some other options to choose from

Filter options

How to display those in the most efficient way? In the top bar or in a split panel to the left/right of the log? Ideally, we have a few options to filter logs

  • By log level (clarify if user defined or opinionated)
  • By timestamp (probably need to have some date format setting for this)
  • By search string

Grouping messages

Also a few options for this one:

  • Group by log level
  • Group by message
  • Group by timestamp (this might be useful when comparing logs, i.e. for recurring jobs)

Tab/Title bar

There needs to be some form of tab bar at the top where people can change all kinds of settings, choose a file, view an about page, etc.

iced-aw has a widget for this iirc

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.