Documentation ¶
Index ¶
- Constants
- func Alertf(c context.Context, format string, value ...interface{})
- func Criticalf(c context.Context, format string, value ...interface{})
- func CustomSeverityf(c context.Context, severity int, format string, value ...interface{})
- func Debugf(c context.Context, format string, value ...interface{})
- func Emergencyf(c context.Context, format string, value ...interface{})
- func Errorf(c context.Context, format string, value ...interface{})
- func Infof(c context.Context, format string, value ...interface{})
- func Noticef(c context.Context, format string, value ...interface{})
- func Warningf(c context.Context, format string, value ...interface{})
- type GroupingHandler
- type Option
- func AppEngineResource() Option
- func BufferedByte(limit int) Option
- func CloudFunctionsResource() Option
- func ConcurrentWrite(limit int) Option
- func EntryByteLimit(limit int) Option
- func EntryByteThreshold(threshold int) Option
- func EntryCount(threshold int) Option
- func Label(label map[string]string) Option
- func MonitoredResource(resourceType string, resourceLabel map[string]string) Option
- func WriteDelay(threshold int) Option
- type Service
Constants ¶
const ( // GAEApplication . GAEApplication = "gae_app" //CloudFunction . CloudFunction = "cloud_function" )
Variables ¶
This section is empty.
Functions ¶
func CustomSeverityf ¶
CustomSeverityf 0 < Debugf(100) < ... < Emergencyf(700)
func Emergencyf ¶
Emergencyf Alertf < Emergencyf
Types ¶
type GroupingHandler ¶
GroupingHandler グループ化される処理
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option option interface
func AppEngineResource ¶
func AppEngineResource() Option
AppEngineResource appengine log resource https://cloud.google.com/appengine/docs/standard/go111/runtime?authuser=0&hl=ja#environment_variables
func CloudFunctionsResource ¶
func CloudFunctionsResource() Option
CloudFunctionsResource cloudfunctions log resource https://cloud.google.com/functions/docs/env-var?hl=ja#environment_variables_set_automatically
func ConcurrentWrite ¶
ConcurrentWrite ログエントリの同時書き込み数 Default: 1
func EntryByteLimit ¶
EntryByteLimit 送信するログエントリの最大サイズ Default: 0(無制限)
func EntryByteThreshold ¶
EntryByteThreshold バッファ可能なログエントリの最大サイズ Default: 1MiB
func MonitoredResource ¶
MonitoredResource ログエントリに付加するリソースラベル https://cloud.google.com/monitoring/api/resources のResourceTypeのLabelsを自動で補完します。 Default: resourceType = project, resourceLabel = {"project_id": $PROJECT_ID}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service loggingService
func NewLogging ¶
func NewLogging(projectID, logID string, opts ...option.ClientOption) (service Service, err error)
NewLogging 新しいLoggingServiceを取得する
func (Service) GroupedBy ¶
func (s Service) GroupedBy(parentLogID string) GroupingHandler
GroupedBy ログをリクエストでグループ化する
func (Service) WithContext ¶
WithContext 他のcontextを受け入れる