Documentation
¶
Index ¶
- Constants
- 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 InitLog(path string, nid []byte)
- 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 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.