Documentation ¶
Overview ¶
Package logging implements the logger for the pack CLI.
Index ¶
- func WithClock(clock func() time.Time) func(writers *LogWithWriters)
- func WithVerbose() func(writers *LogWithWriters)
- type LogWithWriters
- func (lw *LogWithWriters) HandleLog(e *log.Entry) error
- func (lw *LogWithWriters) IsVerbose() bool
- func (lw *LogWithWriters) WantQuiet(f bool)
- func (lw *LogWithWriters) WantTime(f bool)
- func (lw *LogWithWriters) WantVerbose(f bool)
- func (lw *LogWithWriters) Writer() io.Writer
- func (lw *LogWithWriters) WriterForLevel(level logging.Level) io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClock ¶ added in v0.7.0
func WithClock(clock func() time.Time) func(writers *LogWithWriters)
func WithVerbose ¶ added in v0.11.0
func WithVerbose() func(writers *LogWithWriters)
Types ¶
type LogWithWriters ¶ added in v0.7.0
func NewLogWithWriters ¶
func NewLogWithWriters(stdout, stderr io.Writer, opts ...func(*LogWithWriters)) *LogWithWriters
NewLogWithWriters creates a logger to be used with pack CLI.
func (*LogWithWriters) HandleLog ¶ added in v0.7.0
func (lw *LogWithWriters) HandleLog(e *log.Entry) error
func (*LogWithWriters) IsVerbose ¶ added in v0.7.0
func (lw *LogWithWriters) IsVerbose() bool
func (*LogWithWriters) WantQuiet ¶ added in v0.7.0
func (lw *LogWithWriters) WantQuiet(f bool)
func (*LogWithWriters) WantTime ¶ added in v0.7.0
func (lw *LogWithWriters) WantTime(f bool)
func (*LogWithWriters) WantVerbose ¶ added in v0.7.0
func (lw *LogWithWriters) WantVerbose(f bool)
func (*LogWithWriters) Writer ¶ added in v0.7.0
func (lw *LogWithWriters) Writer() io.Writer
func (*LogWithWriters) WriterForLevel ¶ added in v0.7.0
func (lw *LogWithWriters) WriterForLevel(level logging.Level) io.Writer
Click to show internal directories.
Click to hide internal directories.