Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FormatLayoutJSON uses JSON layout FormatLayoutJSON FormatLayoutType = "json" // FormatLayoutText uses classic colorful Jenkins X layout FormatLayoutText FormatLayoutType = "text" // FormatLayoutStackdriver uses a custom formatter for stackdriver FormatLayoutStackdriver FormatLayoutType = "stackdriver" JxLogFormat = "JX_LOG_FORMAT" JxLogFile = "JX_LOG_FILE" JxLogLevel = "JX_LOG_LEVEL" )
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
func CaptureOutput(f func()) string
CaptureOutput calls the specified function capturing and returning all logged messages.
Types ¶
type Hook ¶ added in v0.0.7
type Hook struct {
// contains filtered or unexported fields
}
Hook is a logrus hook for splunk
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.