Giter Club home page Giter Club logo

Comments (4)

mfridman avatar mfridman commented on June 14, 2024

Absolutely. I thought that was the case already. If you use the library, you can set a disabled logger, or if using the CLI if you don't supply the verbose flag, it doesn't print anything.

If that's not the case, I could see us introducing –-quiet flag or equivalent.

from goose.

servernoj avatar servernoj commented on June 14, 2024

To clarify, I am using the library because some of my migrations are Go-flavored. I'm not sure I understand how to disable logging that is buried like in these two examples:

Based on how the logger is initialized in

goose/log.go

Line 7 in 76946cc

var log Logger = &stdLogger{}
I don't see a way to disable it via options passed to Run() method

Thank you

from goose.

mfridman avatar mfridman commented on June 14, 2024

All of the log identifiers are for the "custom" logger and not the standard lib one.

In #383 we added a noop logger, so something like this might work:

goose.SetLogger(goose.NopLogger())

Or, if you use goose.NewProvider and call methods, they should all be "quiet" by default unless you enable verbose.

from goose.

servernoj avatar servernoj commented on June 14, 2024

Thank you, the approach with

goose.SetLogger(goose.NopLogger())

helped. I am closing the issue.

from goose.

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.