Documentation
¶
Index ¶
- func Blank()
- func CaptureOutput(f func()) string
- func Debug(someString string, args ...interface{})
- func Error(someString string, args ...interface{})
- func Fatal(someString string, err error, args ...interface{}) error
- func GetLevels() []string
- func Info(someString string, args ...interface{})
- func Logger() *logrus.Entry
- func SetLevel(s string) error
- func SetOutput(out io.Writer)
- func Trace(someString string, args ...interface{})
- func Var(variable string, value ...interface{})
- func Warn(someString string, args ...interface{})
- type FormatLayoutType
- type JenkinsXTextFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
func CaptureOutput(f func()) string
CaptureOutput calls the specified function capturing and returning all logged messages.
func Error ¶
func Error(someString string, args ...interface{})
Tell the user of an error, doesn't determine fatality
func Logger ¶
Logger obtains the logger for use in the jx codebase This is the only way you should obtain a logger
Types ¶
type FormatLayoutType ¶
type FormatLayoutType string
FormatLayoutType the layout kind
const ( // FormatLayoutJSON uses JSON layout FormatLayoutJSON FormatLayoutType = "json" // FormatLayoutText uses classic colorful Jenkins X layout FormatLayoutText FormatLayoutType = "text" )
type JenkinsXTextFormat ¶
JenkinsXTextFormat lets use a custom text format
func NewJenkinsXTextFormat ¶
func NewJenkinsXTextFormat() *JenkinsXTextFormat
NewJenkinsXTextFormat creates the default Jenkins X text formatter
Click to show internal directories.
Click to hide internal directories.