Comments (2)
There should be at least 2 options:
- Disable the global logger using
goose.SetLogger
, and supply either agoose.NopLogger()
(added in #383), or bring your own which implements theLogger
interface.
goose.SetLogger(goose.NopLogger())
- Use
goose.NewProvider
and run any method (like*provider.Up()
or*provider.Down()
) which by default does not produce any output unless you supply a functional option to opt-in to more verbose logging. The Provider is a new edition and is not affected by any global state except if there are globally registered Go migrations. Specifically, there is an entire section about reducing the logging from the core package.
from goose.
Going to close this out, but feel free to re-open the issue and/or comment if the above options aren't working for you. Or, you're looking for some other behaviour.
from goose.
Related Issues (20)
- Binary bulding error with ClickHouse driver HOT 4
- YDB up not work HOT 3
- Avoid acquiring lock if no pending migrations
- Provider: add recover function for Go migrations to gracefully handle panics
- Standardise the MIT license HOT 1
- Cannot run migration after upgrading goose to version 3
- Formatting MigrationResults in a custom Provider HOT 10
- Switch to testcontainers-go
- Support LibSQL HOT 8
- CockroachDB Support HOT 4
- goose validate does not recognize "AddMigrationContext" HOT 2
- Improving the goose CLI command HOT 2
- Split goose into separate modules (same repository) HOT 1
- Build GitHub Releases with `tinygo` HOT 2
- Compress releases with `tar.xz` and `tar.gz` HOT 4
- Add guidance for adding new dialects and integrations (CONTRIBUTING.md)
- feat: Expand Store interface; add GetLatestVersion method in Provider
- Command "goose validate" don't run HOT 1
- Make goose annotations case-insensitive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goose.