GithubHelp home page GithubHelp logo

make backlog size configurable about rtail HOT 12 CLOSED

kilianc avatar kilianc commented on May 25, 2024
make backlog size configurable

from rtail.

Comments (12)

kilianc avatar kilianc commented on May 25, 2024

can you please post the stack trace or any error log you have?

from rtail.

rmchale avatar rmchale commented on May 25, 2024

Sure. FWIW, I think we routinely set out logging buffers for similar things to between 1000 & 10K lines.

from rtail.

kilianc avatar kilianc commented on May 25, 2024

ok so by buffer you mean backlog size? the amount of lines you can see in the webapp at the same time ?

from rtail.

rmchale avatar rmchale commented on May 25, 2024

Yes, exactly. Do you still need that stacktrace?

from rtail.

kilianc avatar kilianc commented on May 25, 2024

at the moment we have 100 lines as value, based on the purpose itself of rtail, I guess adding --backlog-size won't hurt but I need to patch the webapp also.

I'll mark this as feature request and make it happen by EOW.

Meanwhile git clone and search and replace for 100 it will match 2 lines on both app and cli.
then gulp app and npm link and you're set.

Dev notes are not ready yet.

from rtail.

rmchale avatar rmchale commented on May 25, 2024

Thanks!

from rtail.

kilianc avatar kilianc commented on May 25, 2024

https://github.com/kilianc/rtail/blob/develop/cli/rtail-server.js#L101
https://github.com/kilianc/rtail/blob/develop/app/app.ejs#L18

from rtail.

kilianc avatar kilianc commented on May 25, 2024

after putting some thought in it, I decided to not implement this functionality. I would like to understand what exactly is your use case and why you need it. The reason I am reluctant to allow big buffer sizes is that this thing runs in the browser and we have BUFFER_SIZE dom elements inside an ng-repeat.

Performances will drop drastically with too many elements.

The purpose of this is to have centralized realtime logs, not rolling out 10k log lines at once, I am open to change my mind if you have a solid use case for this. I'll be happy to reopen this.

from rtail.

rmchale avatar rmchale commented on May 25, 2024

I am trying to look at log data. My use case was that got a stacktrace and it didn't even fit into 100 lines. Meaning I couldn't even see the error I needed to look at. Which is why I was using rtail in the first place. I am unable to use rtail to view the logs and forced to go back to using tail. FWIW I think practically the 10K # is closer to 1K. I think without this feature rtail has a very limited use case. I spend lots of time looking at logs and it is rare that 100 lines of logging data is enough.

from rtail.

rmchale avatar rmchale commented on May 25, 2024

This is the logging for ONE request in my app. As you can see its well over 100 lines
https://gist.github.com/rmchale/b024ebbb315a8634062f

from rtail.

kilianc avatar kilianc commented on May 25, 2024

@rmchale thanks for explaining this to me, I appreciate it!

Now it seems like yours is an edge case where a log line (it's even a json object) translates in multiple lines because is formatted at the source.

Logs, by definitions are one line and delimited by \n, is there any way that you can make your logger emit a non formatted json object? rtail takes care of it already and you will be able to see 100 objects.

Btw, how do you use tail -f on a terminal with that amount of data in one shot ?

from rtail.

kilianc avatar kilianc commented on May 25, 2024

@rmchale well, was just trying to understand your particular case :) happy hunting!

from rtail.

Related Issues (20)

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.