Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogFile = "$HOME/.config/corectl/corectl.log" LogMaxSize = 10 LogMaxBackups = 5 LogMaxAge = 30 LogCompress = true DefaultTailLines = 20 TimeFieldKey = "ts" MessageFieldKey = "status" DefaultConsoleLogLevel = zapcore.WarnLevel )
Variables ¶
This section is empty.
Functions ¶
func GetFileOnlyLogger ¶ added in v0.29.1
Types ¶
type CECGLogger ¶
type CECGLogger struct {
// contains filtered or unexported fields
}
type CECGLoggerEntry ¶
type CECGLoggerEntry struct {
// contains filtered or unexported fields
}
func (*CECGLoggerEntry) Msg ¶
func (e *CECGLoggerEntry) Msg(msg string)
func (*CECGLoggerEntry) Msgf ¶
func (e *CECGLoggerEntry) Msgf(msg string, args ...interface{})
func (*CECGLoggerEntry) With ¶
func (e *CECGLoggerEntry) With(fields ...zap.Field) *CECGLoggerEntry
With creates a child logger with the given fields
Click to show internal directories.
Click to hide internal directories.