isulogger

package
v0.0.0-...-38c4f6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package isulogger is client for ISULOG

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Isulogger

type Isulogger struct {
	// contains filtered or unexported fields
}

func NewIsulogger

func NewIsulogger(endpoint, appID string) (*Isulogger, error)

NewIsulogger はIsuloggerを初期化します

endpoint: ISULOGを利用するためのエンドポイントURI appID: ISULOGを利用するためのアプリケーションID

func (*Isulogger) Send

func (b *Isulogger) Send(tag string, data interface{}) error

Send はログを送信します

type Log

type Log struct {
	// Tagは各ログを識別するための情報です
	Tag string `json:"tag"`
	// Timeはログの発生時間
	Time time.Time `json:"time"`
	// Data はログの詳細情報でTagごとに決められています
	Data interface{} `json:"data"`
}

Log はIsuloggerに送るためのログフォーマット

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL