# README
log
Index
func Debug(string)
func Debug(msg string, v ...interface{})
func Error(string)
func Error(msg string, v ...interface{})
func Fatal(string)
func Fatal(msg string, v ...interface{})
func Info(string)
func Info(msg string, v ...interface{})
func Panic(string)
func Panic(msg string, v ...interface{})
func SetupLogging() error
SetupLogging sets up the logging outputs.
func SetupLogging() error
func Trace(string)
func Trace(msg string, v ...interface{})
func Warn(string)
func Warn(msg string, v ...interface{})
type Logger
type Logger struct {
Config config.ConfigLog
// contains filtered or unexported fields
}
func NewLogger(ConfigLog) (Logger, error)
NewLogger returns a pointer to a new logger created with a LoggerConfig.
Example:
config := &LoggerConfig{Type: 1, Level: logrus.InfoLevel}
logger := NewLogger(cfg)
func NewLogger(cfg config.ConfigLog) (*Logger, error)
func (*Logger) Debug(Context, string)
func (l *Logger) Debug(ctx context.Context, msg string, v ...interface{})
func (*Logger) Error(Context, string)
func (l *Logger) Error(ctx context.Context, msg string, v ...interface{})
func (*Logger) Fatal(Context, string)
func (l *Logger) Fatal(ctx context.Context, msg string, v ...interface{})
func (*Logger) FormatToString() string
func (l *Logger) FormatToString(v ...interface{}) string
func (*Logger) Info(Context, string)
func (l *Logger) Info(ctx context.Context, msg string, v ...interface{})
func (*Logger) LogOut()
func (l *Logger) LogOut(v ...interface{})
func (*Logger) LogWithFieldsOut(Level, Fields, string)
LogWithFIeldsOut logs to all outputs at the specified level the provided formatted message.
func (l *Logger) LogWithFieldsOut(level logrus.Level, fields logrus.Fields, msg string, v ...interface{})
func (*Logger) Panic(Context, string)
func (l *Logger) Panic(ctx context.Context, msg string, v ...interface{})
func (*Logger) Warn(Context, string)
func (l *Logger) Warn(ctx context.Context, msg string, v ...interface{})
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewLogger returns a pointer to a new logger created with a LoggerConfig.
No description provided by the author
SetupLogging sets up the logging outputs.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author