Documentation
¶
Index ¶
- Constants
- func DisableLogging()
- func EnableLogging()
- func Init()
- func Instance() *cloudlib.Provider
- func Log(msg string, keyValuePairs ...string)
- func LogWithLevel(lvl Severity, msg string, keyValuePairs ...string)
- func Meter(ctx context.Context, metric string, vals ...string)
- func NewConfig(opts ...cloudlib.ProviderConfig) (*cloudlib.Provider, error)
- func NewDefaultProvider() interface{}
- func ReportError(e error) error
- func UpdateConfig(opts ...cloudlib.ProviderConfig) (*cloudlib.Provider, error)
- type ErrorReportingProvider
- type LoggingProvider
- type MetricsProvider
- type Severity
Constants ¶
View Source
const ( DefaultLogId = "default" MetricsLogId = "metric" ValuesLogId = "values" LevelDebug Severity = iota LevelInfo LevelNotice LevelWarn LevelError LevelAlert TypeLogger cloudlib.ProviderType = 10 TypeErrorReporter cloudlib.ProviderType = 11 TypeMetrics cloudlib.ProviderType = 12 )
Variables ¶
This section is empty.
Functions ¶
func DisableLogging ¶
func DisableLogging()
func EnableLogging ¶
func EnableLogging()
func LogWithLevel ¶
func NewDefaultProvider ¶
func NewDefaultProvider() interface{}
a default provider that does nothing but prevents NPEs in case someone forgets to actually initializa the 'real' provider
func ReportError ¶
func UpdateConfig ¶
func UpdateConfig(opts ...cloudlib.ProviderConfig) (*cloudlib.Provider, error)
Types ¶
type ErrorReportingProvider ¶
type LoggingProvider ¶
type MetricsProvider ¶
Click to show internal directories.
Click to hide internal directories.