Documentation
¶
Index ¶
- Constants
- Variables
- 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) LogReport(severity, format string, a ...interface{})
- func (l *Logger) Span(span trace.Span) *SpanLogEntry
- func (l *Logger) SpanOf(spanID string) *SpanLogEntry
- type LoggerFactory
- type SpanLogEntry
- func (e *SpanLogEntry) Debug(format string, a ...interface{})
- func (e *SpanLogEntry) Error(format string, a ...interface{})
- func (e *SpanLogEntry) ErrorReport(format string, a ...interface{})
- func (e *SpanLogEntry) Log(severity, format string, a ...interface{})
- func (e *SpanLogEntry) LogReport(severity, format string, a ...interface{})
Constants ¶
View Source
const ( DEFAULT = "Default" DEBUG = "Debug" INFO = "Info" NOTICE = "Notice" WARNING = "Warning" ERROR = "Error" CRITICAL = "Critical" ALERT = "Alert" EMERGENCY = "Emergency" )
Variables ¶
View Source
var (
Factory = Must(New(context.Background(), projectID))
)
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) ErrorReport ¶
func (*Logger) SpanOf ¶
func (l *Logger) SpanOf(spanID string) *SpanLogEntry
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
func Must ¶
func Must(f *LoggerFactory, err error) *LoggerFactory
func (*LoggerFactory) Close ¶
func (f *LoggerFactory) Close()
type SpanLogEntry ¶
type SpanLogEntry struct {
Severity string `json:"severity"`
Message string `json:"message"`
Time time.Time `json:"time"`
Trace string `json:"logging.googleapis.com/trace"`
SpanID string `json:"logging.googleapis.com/spanId"`
// contains filtered or unexported fields
}
func (*SpanLogEntry) Debug ¶
func (e *SpanLogEntry) Debug(format string, a ...interface{})
func (*SpanLogEntry) Error ¶
func (e *SpanLogEntry) Error(format string, a ...interface{})
func (*SpanLogEntry) ErrorReport ¶
func (e *SpanLogEntry) ErrorReport(format string, a ...interface{})
func (*SpanLogEntry) Log ¶
func (e *SpanLogEntry) Log(severity, format string, a ...interface{})
func (*SpanLogEntry) LogReport ¶
func (e *SpanLogEntry) LogReport(severity, format string, a ...interface{})
Click to show internal directories.
Click to hide internal directories.