Documentation ¶
Index ¶
- Variables
- func CloseLogger(file *os.File)
- func CreateOutputDir(directoryName string, commandName string) string
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Fatalln(v ...any)
- func Fprint(w io.Writer, v ...any) (n int, err error)
- func Fprintf(w io.Writer, format string, v ...any) (n int, err error)
- func Fprintln(w io.Writer, v ...any) (n int, err error)
- func NewLogger(logFileName string)
- func NewLoggerDateTime(logFileName string)
- func NewLoggerDateTimeFile(logFileName string)
- func NewLoggerNull()
- func NewLoggerStdout()
- func NewLoggerStdoutDateTime()
- func NewLoggerStdoutDateTimeFile()
- func Panicln(v ...any)
- func Print(v ...any)
- func Printf(format string, v ...any)
- func Println(v ...any)
- func Writer() io.Writer
- type LogType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurrentLogDirectory string Log *LogType )
Functions ¶
func CloseLogger ¶
func CreateOutputDir ¶
func NewLoggerDateTime ¶
func NewLoggerDateTime(logFileName string)
func NewLoggerDateTimeFile ¶
func NewLoggerDateTimeFile(logFileName string)
func NewLoggerNull ¶
func NewLoggerNull()
func NewLoggerStdout ¶
func NewLoggerStdout()
New logger for commands that do not need to create a complete directory structure
func NewLoggerStdoutDateTime ¶
func NewLoggerStdoutDateTime()
func NewLoggerStdoutDateTimeFile ¶
func NewLoggerStdoutDateTimeFile()
Types ¶
Click to show internal directories.
Click to hide internal directories.