package
9.0.0-beta.1.pre+incompatible
Repository: https://github.com/pingcap/ticdc.git
Documentation: pkg.go.dev
# Functions
ErrorFilterContextCanceled log the msg and fields but do nothing if fields have cancel error.
InitGinLogWritter initialize loggers for Gin.
InitLogger initializes logger.
SetLogLevel changes TiCDC log level dynamically.
ShortError contructs a field which only records the error message without the verbose text (i.e.
WithComponent return a logger with specified component scope.
WithInitGRPCLogger enables grpc logger initialization when initializes global logger.
WithInitMySQLLogger enables mysql logger initialization when initializes global logger.
WithInitSaramaLogger enables sarama logger initialization when initializes global logger.
WithOutputWriteSyncer will replace the WriteSyncer of global logger with customized WriteSyncer Easy for test when using zaptest.Buffer as WriteSyncer.
ZapErrorFilter wraps zap.Error, if err is in given filterErrors, it will be set to nil.
# Type aliases
LoggerOpt is the logger option.