Documentation
¶
Index ¶
Constants ¶
View Source
const (
//Version string.
Version = major + "." + minor + "." + patch
)
Variables ¶
View Source
var ConfigFilePath = fmt.Sprintf("%s/%s", coreconfig.GetGolangspellHome(), configFileName)
ConfigFilePath contains the path of the config file
View Source
var (
Values coreconfig.Config
)
Values stores the current configuration values
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
// Debug uses fmt.Sprint to construct and log a message.
Debug(args ...interface{})
// Info uses fmt.Sprint to construct and log a message.
Info(args ...interface{})
// Warn uses fmt.Sprint to construct and log a message.
Warn(args ...interface{})
// Error uses fmt.Sprint to construct and log a message.
Error(args ...interface{})
// DPanic uses fmt.Sprint to construct and log a message. In development, the
// logger then panics. (See DPanicLevel for details.)
DPanic(args ...interface{})
// Panic uses fmt.Sprint to construct and log a message, then panics.
Panic(args ...interface{})
// Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.
Fatal(args ...interface{})
// Debugf uses fmt.Sprintf to log a templated message.
Debugf(template string, args ...interface{})
// Infof uses fmt.Sprintf to log a templated message.
Infof(template string, args ...interface{})
// Warnf uses fmt.Sprintf to log a templated message.
Warnf(template string, args ...interface{})
// Errorf uses fmt.Sprintf to log a templated message.
Errorf(template string, args ...interface{})
// DPanicf uses fmt.Sprintf to log a templated message. In development, the
// logger then panics. (See DPanicLevel for details.)
DPanicf(template string, args ...interface{})
// Panicf uses fmt.Sprintf to log a templated message, then panics.
Panicf(template string, args ...interface{})
// Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.
Fatalf(template string, args ...interface{})
//Sync flushes the log if needed
Sync()
}
Logger interface defining expected methods for logging
Click to show internal directories.
Click to hide internal directories.