Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetLogger = NewLoggerFactoryFromEnv("PEERCALLS_", os.Stderr).GetLogger
View Source
var TimeFormat = "2006-01-02T15:04:05.000000Z07:00"
Functions ¶
This section is empty.
Types ¶
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
func NewLoggerFactory ¶
func NewLoggerFactory(out io.Writer, enabled map[string]struct{}) *LoggerFactory
func NewLoggerFactoryFromEnv ¶
func NewLoggerFactoryFromEnv(prefix string, out io.Writer) *LoggerFactory
func (*LoggerFactory) GetLogger ¶
func (l *LoggerFactory) GetLogger(name string) *Logger
Click to show internal directories.
Click to hide internal directories.