Documentation ¶
Index ¶
- func RandStringRunes(n int) string
- type Logger
- func (logger *Logger) DeactivateLogFile()
- func (logger *Logger) Debug(args ...interface{})
- func (logger *Logger) Fatal(project string, args ...interface{})
- func (logger *Logger) FatalJob(project string, jobID string, args ...interface{})
- func (logger *Logger) Print(args ...interface{})
- func (logger *Logger) PrintImportant(args ...interface{})
- func (logger *Logger) PrintImportantJob(jobID string, args ...interface{})
- func (logger *Logger) PrintJob(jobID string, args ...interface{})
- func (logger *Logger) Println(args ...interface{})
- func (logger *Logger) PrintlnJob(jobID string, args ...interface{})
- func (logger *Logger) SetLevel(lvl string) error
- func (logger *Logger) SetLogEntry(logentry string) error
- func (logger *Logger) SetLogFile(logfile string) error
- func (logger *Logger) SqlDebug(jobID string, sql string, name string)
- func (logger *Logger) Success(project string, message interface{})
- func (logger *Logger) Warningln(args ...interface{})
- func (logger *Logger) WarninglnJob(jobID string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandStringRunes ¶ added in v0.24.0
Types ¶
type Logger ¶
type Logger struct { Level string LogFile string LogToFile bool LogEntry string StartTs time.Time EndTs time.Time AferoFs *afero.Afero JobDecorations jobDecorations JobCount int }
func (*Logger) DeactivateLogFile ¶
func (logger *Logger) DeactivateLogFile()
DeactivateLogFile deactivates logfile
func (*Logger) PrintImportant ¶
func (logger *Logger) PrintImportant(args ...interface{})
func (*Logger) PrintImportantJob ¶ added in v0.23.0
func (*Logger) PrintlnJob ¶ added in v0.23.0
func (*Logger) SetLogEntry ¶
SetLogEntry sets the format of each log entry. It is a go text/template
func (*Logger) WarninglnJob ¶ added in v0.23.0
Click to show internal directories.
Click to hide internal directories.