Documentation
¶
Index ¶
Constants ¶
View Source
const ( InfoType = iota ErrorType WarningType PanicType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶
func NewDefaultConfig(stack string, app string) *DefaultConfig
NewDefaultConfig create a config that will set your project and the maintainer
type ErrorLevel ¶
type Levels ¶
type Levels interface { ErrorLevel WarningLevel InfoLevel PanicLevel }
type Logger ¶
func (*Logger) WithDefaultConfig ¶
func (l *Logger) WithDefaultConfig(config *DefaultConfig) *Logger
func (*Logger) WithWriter ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
NewMessage create the message that will send to writers
type PanicLevel ¶
type PanicLevel interface { //Panic format to a PANIC log and send to some writer, after it runs os.Exit Panic(patter string, args ...interface{}) }
type WarningLevel ¶
Click to show internal directories.
Click to hide internal directories.