package
5.0.0-rc+incompatible
Repository: https://github.com/pingcap/tidb-lightning.git
Documentation: pkg.go.dev
# Functions
InitLogger initializes Lightning's and also the TiDB library's loggers.
IsContextCanceledError returns whether the error is caused by context cancellation.
L returns the current logger for Lightning.
Level returns the current global log level.
MakeTestLogger creates a Logger instance which produces JSON logs.
SetAppLogger replaces the default logger in this package to given one.
SetLevel modifies the log level of the global logger.
ShortError contructs a field which only records the error message without the verbose text (i.e.
With creates a child logger from the global logger and adds structured context to it.