Giter VIP home page Giter VIP logo

dlib's People

Contributors

josecv avatar kflynn avatar lukeshu avatar thallgren avatar

Stargazers

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

Watchers

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

Forkers

radtek

dlib's Issues

Rethink the `dlog.Logger` interface

The 1.x dlog.Logger interface is simple-to-implement but "slow" in that non-logged formatting can't be optimized out. Implementations can opt-in to such an optimization by also implementing the dlog.OptmizedLogger interface, but it's more complex.

There's some thinking that it's a design flaw that it's so easy to do the slow thing.

See the discussion on #33

dgroup's shutdown logging is async

dgroup's shutdown logging works by watching the Context and logging when it observes that it becomes Done. Because this is async, the ordering of the shutdown log line might actually come after things caused by the shutdown. This is confusing and makes the logs hard to read.

This should be solvable by wrapping the Context in our own Context implementation that logs before propagating the cancelation to child Contexts.

Provide an option to control the verbosity of dexec.Cmd

The logging of dexec.Cmd() can be turned on or off using the DisableLogging flag, but there is no way to control how much output the command generates and it's generally very verbose. In many situations, all the reader of a log wants to know is if the command executed and if something went wrong.

I would like a way to control this so that only the command string is logged and, unless there's an error (output to stderr or non-zero exit code) nothing else.

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.