log

package
v0.0.0-...-d357feb Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ElasticsearchCloudid is id
	ElasticsearchCloudid string

	// ElasticsearchUser is user
	ElasticsearchUser string

	// ElasticsearchPass is user
	ElasticsearchPass string
)

Functions

func Debug

func Debug(format string, args ...interface{})

Debug output debug level.

func Error

func Error(format string, args ...interface{})

Error output error level.

func Fatal

func Fatal(format string, args ...interface{})

Fatal outpu fatal level.

func Info

func Info(format string, args ...interface{})

Info output info level.

func JSTTimeEncoder

func JSTTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

JSTTimeEncoder return JST

func OutputSuperChat

func OutputSuperChat(o string)

OutputSuperChat output chat log

func SendChat

func SendChat(channelID, messageID, jsonStr string) error

SendChat send chat message to Elasticsearch

func SendChats

func SendChats(jsons []string) error

SendChats send chat message to Elasticsearch

func Sync

func Sync()

Sync is wapper: zap.Logger

func SyncSuerChat

func SyncSuerChat()

SyncSuerChat is wapper: zap.Logger

func UpdateVideoTitle

func UpdateVideoTitle(vid, vtitle, actualStartTimeJST string) error

UpdateVideoTitle is update video title.

func Warn

func Warn(format string, args ...interface{})

Warn output warn level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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