Documentation ¶
Index ¶
- Constants
- func CCDebug(msgs ...interface{})
- func CCDebugf(format string, values ...interface{})
- func CCError(msgs ...interface{})
- func CCErrorf(format string, values ...interface{})
- func CCInfo(msgs ...interface{})
- func CCInfof(format string, values ...interface{})
- func CCWarn(msgs ...interface{})
- func CCWarnf(format string, values ...interface{})
- func CCWithFields(fields logrus.Fields) logrus.FieldLogger
- func Debug(msgs ...interface{})
- func Debugf(format string, values ...interface{})
- func Error(msgs ...interface{})
- func Errorf(format string, values ...interface{})
- func Info(msgs ...interface{})
- func Infof(format string, values ...interface{})
- func InitCheckLog(path string, nid []byte)
- func InitLog(path string, nid []byte)
- func Logger() *logrus.Logger
- func MustDebugf(logger logrus.FieldLogger, format string, args ...interface{})
- func MustErrorf(logger logrus.FieldLogger, format string, args ...interface{})
- func MustInfof(logger logrus.FieldLogger, format string, args ...interface{})
- func MustWarnf(logger logrus.FieldLogger, format string, args ...interface{})
- func Warn(msgs ...interface{})
- func Warnf(format string, values ...interface{})
- func WithField(vs ...interface{}) logrus.FieldLogger
- func WithFields(fields logrus.Fields) logrus.FieldLogger
- type EmptyWriter
- type FileAndConsoleHook
Constants ¶
View Source
const MaxTxsInLog = 50 // up to 50 transaction information can be displayed in the log
Variables ¶
This section is empty.
Functions ¶
func CCWithFields ¶ added in v1.3.1
func CCWithFields(fields logrus.Fields) logrus.FieldLogger
func InitCheckLog ¶ added in v1.3.1
func MustDebugf ¶ added in v1.3.6
func MustDebugf(logger logrus.FieldLogger, format string, args ...interface{})
func MustErrorf ¶ added in v1.3.6
func MustErrorf(logger logrus.FieldLogger, format string, args ...interface{})
func MustInfof ¶ added in v1.3.6
func MustInfof(logger logrus.FieldLogger, format string, args ...interface{})
func MustWarnf ¶ added in v1.3.6
func MustWarnf(logger logrus.FieldLogger, format string, args ...interface{})
func WithField ¶
func WithField(vs ...interface{}) logrus.FieldLogger
func WithFields ¶
func WithFields(fields logrus.Fields) logrus.FieldLogger
Types ¶
type EmptyWriter ¶
type EmptyWriter struct{}
type FileAndConsoleHook ¶
type FileAndConsoleHook struct {
// contains filtered or unexported fields
}
func NewFileAndConsoleHook ¶
func (*FileAndConsoleHook) Levels ¶
func (m *FileAndConsoleHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.