Documentation ¶
Index ¶
- Variables
- func C(format string, args ...interface{})
- func D(format string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func Default(format string, args ...interface{})
- func E(format string, args ...interface{})
- func EW(format string, err error)
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func FormatWithWrapper(entry *logrus.Entry) ([]byte, error)
- func Get() *logrus.Logger
- func GetProjectName() string
- func GetRef() **logrus.Logger
- func HC(format string, args ...interface{})
- func I(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func InitLogByProjectName(logger **logrus.Logger, projectName string, projectPath string, ...)
- func InitLogCfg(logger **logrus.Logger, initCfg *LogInitConfiguration)
- func JavaJsonFormatWithWrapper(entry *logrus.Entry) ([]byte, error)
- func Print(format string, args ...interface{}) (err error)
- func PrintJavaJsonWithEntry(entry *logrus.Entry) ([]byte, error)
- func PrintWithEntry(entry *logrus.Entry) ([]byte, error)
- func Printf(format string, args ...interface{}) (err error)
- func Println(args ...interface{})
- func SettingProjectName(projectName string)
- func T(format string, args ...interface{})
- func V(format string, args ...interface{})
- func W(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type JavaJsonFormatter
- type LogInitConfiguration
- type PlainFormatter
- type SqlLogger
- func (s SqlLogger) Debug(v ...interface{})
- func (s SqlLogger) Debugf(format string, v ...interface{})
- func (s SqlLogger) Error(v ...interface{})
- func (s SqlLogger) Errorf(format string, v ...interface{})
- func (s SqlLogger) Info(v ...interface{})
- func (s SqlLogger) Infof(format string, v ...interface{})
- func (s SqlLogger) IsShowSQL() bool
- func (s SqlLogger) Level() core.LogLevel
- func (s SqlLogger) SetLevel(l core.LogLevel)
- func (s SqlLogger) ShowSQL(show ...bool)
- func (s SqlLogger) Warn(v ...interface{})
- func (s SqlLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logrus.Logger
View Source
var LogConnection *logrus.Logger
View Source
var LogHttpLog *logrus.Logger
View Source
var LogStackTrace *logrus.Logger
View Source
var LogStd *logrus.Logger
View Source
var LogVerbose *logrus.Logger
View Source
var ProjectName string
Functions ¶
func GetProjectName ¶
func GetProjectName() string
func InitLogByProjectName ¶
func InitLogCfg ¶
func InitLogCfg( logger **logrus.Logger, initCfg *LogInitConfiguration)
func SettingProjectName ¶
func SettingProjectName(projectName string)
Types ¶
type JavaJsonFormatter ¶
type LogInitConfiguration ¶
type PlainFormatter ¶
Click to show internal directories.
Click to hide internal directories.