package log
import "github.com/bitrise-io/go-utils/log"
Index ¶
- func Debugf(format string, v ...interface{})
- func Donef(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func RErrorf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
- func RInfof(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
- func RWarnf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
- func SetAnalyticsServerURL(url string)
- func SetEnableDebugLog(enable bool)
- func SetOutWriter(writer io.Writer)
- func SetTimestampLayout(layout string)
- func Successf(format string, v ...interface{})
- func TDebugf(format string, v ...interface{})
- func TDonef(format string, v ...interface{})
- func TErrorf(format string, v ...interface{})
- func TInfof(format string, v ...interface{})
- func TPrintf(format string, v ...interface{})
- func TSuccessf(format string, v ...interface{})
- func TWarnf(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type DefaultLogger
- func NewDefaultLogger(withTimestamp bool) DefaultLogger
- func (dl DefaultLogger) Debugf(format string, v ...interface{})
- func (dl DefaultLogger) Donef(format string, v ...interface{})
- func (dl DefaultLogger) Errorf(format string, v ...interface{})
- func (dl DefaultLogger) Infof(format string, v ...interface{})
- func (dl DefaultLogger) Printf(format string, v ...interface{})
- func (dl DefaultLogger) Successf(format string, v ...interface{})
- func (dl DefaultLogger) Warnf(format string, v ...interface{})
- type DummyLogger
- func NewDummyLogger() DummyLogger
- func (dl DummyLogger) Debugf(format string, v ...interface{})
- func (dl DummyLogger) Donef(format string, v ...interface{})
- func (dl DummyLogger) Errorf(format string, v ...interface{})
- func (dl DummyLogger) Infof(format string, v ...interface{})
- func (dl DummyLogger) Printf(format string, v ...interface{})
- func (dl DummyLogger) Successf(format string, v ...interface{})
- func (dl DummyLogger) Warnf(format string, v ...interface{})
- type Entry
- type Formatable
- type JSONLoger
- func NewDefaultJSONLoger() JSONLoger
- func NewJSONLoger(writer io.Writer) *JSONLoger
- func (l JSONLoger) Print(f Formatable)
- type Logger
- type RawLogger
- func NewDefaultRawLogger() RawLogger
- func NewRawLogger(writer io.Writer) *RawLogger
- func (l RawLogger) Print(f Formatable)
- type Severity
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf ...
func Donef ¶
func Donef(format string, v ...interface{})
Donef ...
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf ...
func Infof ¶
func Infof(format string, v ...interface{})
Infof ...
func Printf ¶
func Printf(format string, v ...interface{})
Printf ...
func RErrorf ¶
func RErrorf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RErrorf ...
func RInfof ¶
func RInfof(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RInfof ...
func RWarnf ¶
func RWarnf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RWarnf ...
func SetAnalyticsServerURL ¶
func SetAnalyticsServerURL(url string)
SetAnalyticsServerURL updates the the analytics server collecting the logs. It is intended for use during tests. Warning: current implementation is not thread safe, do not call the function during runtime.
func SetEnableDebugLog ¶
func SetEnableDebugLog(enable bool)
SetEnableDebugLog ...
func SetOutWriter ¶
SetOutWriter ...
func SetTimestampLayout ¶
func SetTimestampLayout(layout string)
SetTimestampLayout ...
func Successf ¶
func Successf(format string, v ...interface{})
Successf ...
func TDebugf ¶
func TDebugf(format string, v ...interface{})
TDebugf ...
func TDonef ¶
func TDonef(format string, v ...interface{})
TDonef ...
func TErrorf ¶
func TErrorf(format string, v ...interface{})
TErrorf ...
func TInfof ¶
func TInfof(format string, v ...interface{})
TInfof ...
func TPrintf ¶
func TPrintf(format string, v ...interface{})
TPrintf ...
func TSuccessf ¶
func TSuccessf(format string, v ...interface{})
TSuccessf ...
func TWarnf ¶
func TWarnf(format string, v ...interface{})
TWarnf ...
func Warnf ¶
func Warnf(format string, v ...interface{})
Warnf ...
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger ...
func NewDefaultLogger ¶
func NewDefaultLogger(withTimestamp bool) DefaultLogger
NewDefaultLogger ...
func (DefaultLogger) Debugf ¶
func (dl DefaultLogger) Debugf(format string, v ...interface{})
Debugf ...
func (DefaultLogger) Donef ¶
func (dl DefaultLogger) Donef(format string, v ...interface{})
Donef ...
func (DefaultLogger) Errorf ¶
func (dl DefaultLogger) Errorf(format string, v ...interface{})
Errorf ...
func (DefaultLogger) Infof ¶
func (dl DefaultLogger) Infof(format string, v ...interface{})
Infof ...
func (DefaultLogger) Printf ¶
func (dl DefaultLogger) Printf(format string, v ...interface{})
Printf ...
func (DefaultLogger) Successf ¶
func (dl DefaultLogger) Successf(format string, v ...interface{})
Successf ...
func (DefaultLogger) Warnf ¶
func (dl DefaultLogger) Warnf(format string, v ...interface{})
Warnf ...
type DummyLogger ¶
type DummyLogger struct{}
DummyLogger ...
func NewDummyLogger ¶
func NewDummyLogger() DummyLogger
NewDummyLogger ...
func (DummyLogger) Debugf ¶
func (dl DummyLogger) Debugf(format string, v ...interface{})
Debugf ...
func (DummyLogger) Donef ¶
func (dl DummyLogger) Donef(format string, v ...interface{})
Donef ...
func (DummyLogger) Errorf ¶
func (dl DummyLogger) Errorf(format string, v ...interface{})
Errorf ...
func (DummyLogger) Infof ¶
func (dl DummyLogger) Infof(format string, v ...interface{})
Infof ...
func (DummyLogger) Printf ¶
func (dl DummyLogger) Printf(format string, v ...interface{})
Printf ...
func (DummyLogger) Successf ¶
func (dl DummyLogger) Successf(format string, v ...interface{})
Successf ...
func (DummyLogger) Warnf ¶
func (dl DummyLogger) Warnf(format string, v ...interface{})
Warnf ...
type Entry ¶
type Entry struct { LogLevel string `json:"log_level"` Message string `json:"message"` Data map[string]interface{} `json:"data"` }
Entry represents a line in a log
type Formatable ¶
Formatable ...
type JSONLoger ¶
type JSONLoger struct {
// contains filtered or unexported fields
}
JSONLoger ...
func NewDefaultJSONLoger ¶
func NewDefaultJSONLoger() JSONLoger
NewDefaultJSONLoger ...
func NewJSONLoger ¶
NewJSONLoger ...
func (JSONLoger) Print ¶
func (l JSONLoger) Print(f Formatable)
Print ...
type Logger ¶
type Logger interface { Print(f Formatable) }
Logger ...
type RawLogger ¶
type RawLogger struct {
// contains filtered or unexported fields
}
RawLogger ...
func NewDefaultRawLogger ¶
func NewDefaultRawLogger() RawLogger
NewDefaultRawLogger ...
func NewRawLogger ¶
NewRawLogger ...
func (RawLogger) Print ¶
func (l RawLogger) Print(f Formatable)
Print ...
type Severity ¶
type Severity uint8
Severity ...
Source Files ¶
defaultlogger.go dummylogger.go internal_logger.go json_logger.go log.go logger.go print.go raw_logger.go severity.go
- Version
- v1.0.15 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 2 months ago –
Tools for package owners.