logger

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTerminalWidth = 80
	DotChar              = "."
	BulletChar           = "   •"
)

Constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.4.1

type Logger struct {
	// contains filtered or unexported fields
}

Logger represents a configurable logger instance.

func Get added in v0.4.1

func Get() *Logger

Get returns the logger instance.

func (*Logger) DryRunDownStart added in v0.4.1

func (l *Logger) DryRunDownStart(version int64)

func (*Logger) DryRunDownSummary added in v0.4.1

func (l *Logger) DryRunDownSummary(totalMigrations, totalStatements int, operation string)

func (*Logger) DryRunMigrationComplete added in v0.4.1

func (l *Logger) DryRunMigrationComplete(source string, duration float64)

func (*Logger) DryRunMigrationStart added in v0.4.1

func (l *Logger) DryRunMigrationStart(source string, version int64)

func (*Logger) DryRunSQL added in v0.4.1

func (l *Logger) DryRunSQL(query string, args ...any)

func (*Logger) DryRunStart added in v0.4.1

func (l *Logger) DryRunStart(version int64)

func (*Logger) DryRunSummary added in v0.4.1

func (l *Logger) DryRunSummary(totalMigrations, totalStatements int)

func (*Logger) Info added in v0.4.1

func (l *Logger) Info(msg string)

func (*Logger) Infof added in v0.4.1

func (l *Logger) Infof(format string, args ...any)

func (*Logger) PrintResult added in v0.4.1

func (l *Logger) PrintResult(result *goose.MigrationResult)

func (*Logger) PrintResults added in v0.4.1

func (l *Logger) PrintResults(results []*goose.MigrationResult)

func (*Logger) PrintStatus added in v0.4.1

func (l *Logger) PrintStatus(status *goose.MigrationStatus)

func (*Logger) PrintStatuses added in v0.4.1

func (l *Logger) PrintStatuses(statuses []*goose.MigrationStatus)

func (*Logger) Printf added in v0.4.1

func (l *Logger) Printf(format string, args ...interface{})

Printf is a helper method that writes to the configured output.

func (*Logger) SetOutput added in v0.4.1

func (l *Logger) SetOutput(w io.Writer)

SetOutput sets the output writer for the logger.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL