Documentation ¶
Index ¶
- Constants
- func Default(v, w string) string
- func Must(f func() error, err error) func() error
- func MustSetup(projectID, serviceName, revision string) func() error
- func Setup(projectID, serviceName, revision string) (func() error, error)
- type LogEntry
- type Logger
- func (l *Logger) Debug(format string, a ...interface{})
- func (l *Logger) Error(format string, a ...interface{})
- func (l *Logger) ErrorReport(format string, a ...interface{})
- func (l *Logger) Info(format string, a ...interface{})
- func (l *Logger) Log(severity, format string, a ...interface{})
- func (l *Logger) Report(a ...interface{})
- func (l *Logger) S(s trace.Span) *Logger
- func (l *Logger) Span(s trace.Span) *Logger
- func (l *Logger) Warn(format string, a ...interface{})
- type LoggerFactory
Constants ¶
View Source
const ( DEFAULT = iota DEBUG INFO NOTICE WARNING ERROR CRITICAL ALERT EMERGENCY )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ErrorReport ¶
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
func NewLoggerFactory ¶
func NewLoggerFactory(ctx context.Context, projectID, serviceName, revision string) (*LoggerFactory, error)
func (*LoggerFactory) Close ¶
func (f *LoggerFactory) Close() error
Click to show internal directories.
Click to hide internal directories.