Versions in this module Expand all Collapse all v0 v0.2.0 Oct 3, 2016 Changes in this version + const AdminScope + const Alert + const Critical + const Debug + const Default + const DefaultBufferedByteLimit + const DefaultDelayThreshold + const DefaultEntryByteThreshold + const DefaultEntryCountThreshold + const Emergency + const Error + const Info + const Notice + const ReadScope + const Warning + const WriteScope + var ErrOverflow = errors.New("logging: log entry overflowed buffer limits") + type Client struct + OnError func(err error) + func NewClient(ctx context.Context, projectID string, opts ...option.ClientOption) (*Client, error) + func (c *Client) Close() error + func (c *Client) Logger(logID string, opts ...LoggerOption) *Logger + func (c *Client) Ping(ctx context.Context) error + type Entry struct + HTTPRequest *HTTPRequest + InsertID string + Labels map[string]string + LogName string + Operation *logpb.LogEntryOperation + Payload interface{} + Resource *mrpb.MonitoredResource + Severity Severity + Timestamp time.Time + type HTTPRequest struct + CacheHit bool + CacheValidatedWithOriginServer bool + RemoteIP string + Request *http.Request + RequestSize int64 + ResponseSize int64 + Status int + type Logger struct + func (l *Logger) Flush() + func (l *Logger) Log(e Entry) + func (l *Logger) LogSync(ctx context.Context, e Entry) error + func (l *Logger) StandardLogger(s Severity) *log.Logger + type LoggerOption interface + func BufferedByteLimit(n int) LoggerOption + func CommonLabels(m map[string]string) LoggerOption + func CommonResource(r *mrpb.MonitoredResource) LoggerOption + func DelayThreshold(d time.Duration) LoggerOption + func EntryByteLimit(n int) LoggerOption + func EntryByteThreshold(n int) LoggerOption + func EntryCountThreshold(n int) LoggerOption + type Severity int + func ParseSeverity(s string) Severity + func (v Severity) String() string