Documentation ¶
Index ¶
- Constants
- func PrettyIdentity(v Identifiable) string
- type Identifiable
- type Logger
- func (l Logger) Body(format string, args ...interface{})
- func (l Logger) BodyError(format string, args ...interface{})
- func (l Logger) BodyWarning(format string, args ...interface{})
- func (l Logger) Error(format string, args ...interface{})deprecated
- func (l Logger) FirstLine(format string, args ...interface{})deprecated
- func (l Logger) Header(format string, args ...interface{})
- func (l Logger) HeaderError(format string, args ...interface{})
- func (l Logger) HeaderWarning(format string, args ...interface{})
- func (l Logger) PrettyIdentity(v Identifiable) stringdeprecated
- func (l Logger) SubsequentLine(format string, args ...interface{})deprecated
- func (l Logger) Title(v Identifiable)
- func (l Logger) Warning(format string, args ...interface{})deprecated
Constants ¶
const ( BodyIndent = " " HeaderIndent = " " )
Variables ¶
This section is empty.
Functions ¶
func PrettyIdentity ¶ added in v1.70.0
func PrettyIdentity(v Identifiable) string
PrettyIdentity formats a standard pretty identity of a type.
Types ¶
type Identifiable ¶ added in v1.17.0
type Identifiable interface { // Identity is the method that returns the required name and optional description that make up identity. Identity() (name string, description string) }
Identifiable is an interface that indicates that a type has an identity.
type Logger ¶
Logger is an extension to libbuildpack.Logger to add additional functionality.
func (Logger) Body ¶ added in v1.70.0
Body prints the log message with each line indented four spaces.
func (Logger) BodyError ¶ added in v1.70.0
BodyError prints the log message colored red and bold with each line indented four spaces.
func (Logger) BodyWarning ¶ added in v1.70.0
BodyWarning prints the log message colored yellow and bold with each line indented four spaces.
func (Logger) Header ¶ added in v1.70.0
Header prints the log message indented two spaces, with an empty line above it.
func (Logger) HeaderError ¶ added in v1.70.0
HeaderError prints the log message colored red and bold, indented two spaces, with an empty line above it.
func (Logger) HeaderWarning ¶ added in v1.70.0
HeaderWarning prints the log message colored yellow and bold, indented two spaces, with an empty line above it.
func (Logger) PrettyIdentity
deprecated
added in
v1.17.0
func (l Logger) PrettyIdentity(v Identifiable) string
PrettyIdentity formats a standard pretty identity of a type.
Deprecated: Use Title
func (Logger) SubsequentLine
deprecated
func (Logger) Title ¶ added in v1.70.0
func (l Logger) Title(v Identifiable)
Title prints the log message flush left, with an empty line above it.