Giter Site home page Giter Site logo

reagentx / logria Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 0.0 4.57 MB

A powerful CLI tool that puts log aggregation at your fingertips.

License: GNU General Public License v3.0

Rust 99.56% Shell 0.44%
log-analysis log-monitor log-parser log-viewer logging rust

logria's People

Contributors

reagentx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

logria's Issues

Exiting regex entry does not clear input

  1. Start to enter a regex
  2. Press ⎋ to cancel
  3. Press / to start another regex

After the first keystroke, all of the previously entered text will appear with the new character at the end.

Sometimes `stdout` is slow to receive streams when `stderr` is fine

Example to reproduce:

"""
Simple script to generate test logs
"""

import random
import time
import logging

def first():
    RANDINT = random.randint(1, 100)
    if RANDINT % 3 == 0:
        logging.warning('I am a first log! %s\x00', RANDINT)

def second():
    RANDINT = random.randint(1, 100)
    if RANDINT % 5 == 0:
        logging.error('I am a second log! %s\x00', RANDINT)
        
def third():
    RANDINT = random.randint(1, 100)
    if RANDINT % 7 == 0:
        logging.info('I am a third log! %s\x00', RANDINT)

logging.info('\x00I am the first log in the list! %s\x00', 0)
while True:
    first()
    second()
    third()
    RANDINT = random.randint(1, 100)
    print(f'I am standard output, {RANDINT}')
    time.sleep(0.001)

Support piping to Logria

From the Python repo:

  • Support optional piping as input stream - SO Link
    • Not possible to implement as Logria requires the user to be in control of stdin
    • stdin gets taken over by whatever we pipe to this program, and we cannot move that pipe away from stdin until the pipe finishes
    • We can overwrite the pipe with sys.stdin = open(0) however this will not work until the original pipe ends, which will never happen when tailing a stream

GitHub Actions run in infinite loop

Using the following configuration:

name: Test

on:
  pull_request:
    branches:
        - main
        - develop

env:
  CARGO_TERM_COLOR: always

jobs:
  Test:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: stable
    - name: Lint
      uses: actions-rs/clippy-check@v1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
      continue-on-error: true
    - name: Test
      uses: actions-rs/cargo@v1
      with:
        command: test

GitHub Actions do not work. They run infinitely on tests that access the file system, which is most of them.

https://github.com/ReagentX/Logria/runs/2205703953?check_suite_focus=true

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.