Documentation
¶
Index ¶
- Constants
- func ArchiveLogFile(archiveFile string) error
- func Debug(format string, a ...interface{})
- func Error(format string, a ...interface{})
- func ErrorError(err error)
- func GetCrashInfoMsg() string
- func GetLogFileName() string
- func GetPreConfFile() string
- func Info(format string, a ...interface{})
- func LevelStr(level int) (string, error)
- func RequestCrashInfo()
- func SetLogLevel(l int)
- func SetOutputFilename(logFile string) (*os.File, error)
- func Warning(format string, a ...interface{})
Constants ¶
const ( // LogLevelError specified the log level as: ERROR LogLevelError = 1 // LogLevelWarning specified the log level as: WARNING LogLevelWarning = 2 // LogLevelInfo specified the log level as: INFO LogLevelInfo = 3 // LogLevelDebug specified the log level as: DEBUG LogLevelDebug = 4 // LogLevelVerbose specified the log level as: VERBOSE // This is the same as Debug, but without the repeat filtering LogLevelVerbose = 5 )
Variables ¶
This section is empty.
Functions ¶
func ArchiveLogFile ¶
ArchiveLogFile copies the contents of the log to the given filename
func Debug ¶
func Debug(format string, a ...interface{})
Debug prints a debug log entry with DBG tag
func Error ¶
func Error(format string, a ...interface{})
Error prints an error log entry with ERR tag
func ErrorError ¶
func ErrorError(err error)
ErrorError prints an error log entry with ERR tag, it takes an error instead of format and args, if a TraceableError is provided then we also include the trace information in the error message
func GetCrashInfoMsg ¶
func GetCrashInfoMsg() string
GetCrashInfoMsg returns the crash info message.
func GetLogFileName ¶
func GetLogFileName() string
GetLogFileName ... returns the filename of the current log
func GetPreConfFile ¶
func GetPreConfFile() string
GetPreConfFile ... returns the filename of where to store the pre-configuration file
func LevelStr ¶
LevelStr converts level to its text equivalent, if level is invalid an error is returned
func RequestCrashInfo ¶
func RequestCrashInfo()
RequestCrashInfo prints information for the user on how to properly report the crash of the installer and how to gather more information
func SetOutputFilename ¶
SetOutputFilename ... sets the default log output to filename instead of stdout/stderr
Types ¶
This section is empty.