Coder Social home page Coder Social logo

support filtering log by regex about air HOT 1 OPEN

cosmtrek avatar cosmtrek commented on August 26, 2024
support filtering log by regex

from air.

Comments (1)

perholmes avatar perholmes commented on August 26, 2024

Pity that nothing happened on this. Air has some of the loudest logging we've seen, enough that we're thinking we should go with another hot reloader, or fork Air to get the logging under control.

The problem is that if you run Air inside of a container as we do, we have Air starting up on 10 containers, resulting in about 500 lines of logging in the Docker output that is very close to spam. The more subdirectories you have, the worse it is.

This makes Air potentially harmful, because you might miss something important. I've already missed a message from another container that was buried in the Air log output.

A regexp would work. But since regexp is voodoo for most people, perhaps just a simple array that accepts wildcards. Then it could be in the .toml file:

exclude_logs = ["watching*", "!exclude*"]

from air.

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.