Documentation ¶
Index ¶
- Variables
- func Debug(format string, args ...interface{})
- func Detail(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Init(out io.Writer, logDebug bool, logTrace bool)
- func IsLevelTrace() bool
- func OpenLogFile(logfile string) (*os.File, error)
- func SetDatabase(dcpool *pgxpool.Pool)
- func Trace(format string, args ...interface{})
- func Warning(format string, args ...interface{})
- type Log
- type MessageSet
- type SourceLog
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableColor bool
Functions ¶
func IsLevelTrace ¶ added in v1.2.0
func IsLevelTrace() bool
func SetDatabase ¶ added in v1.0.3
Types ¶
type MessageSet ¶ added in v1.2.5
type MessageSet struct {
Messages map[string]struct{}
}
func NewMessageSet ¶ added in v1.2.5
func NewMessageSet() *MessageSet
func (*MessageSet) Insert ¶ added in v1.2.5
func (d *MessageSet) Insert(msg string) bool
Insert adds a message to the set and returns true if the message was added, false if the set already contained the message.
Click to show internal directories.
Click to hide internal directories.