logging

package
v0.0.0-...-535f382 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormLogger

type GormLogger struct {
	Logging logging.Logging
}

GormLogger Gormのloggerをラップする

func (*GormLogger) Print

func (gl *GormLogger) Print(v ...interface{})

Print Gormのログをloggerに送る

type LogrusLogging

type LogrusLogging struct {
	Client *logrus.Logger
}

LogrusLogging STDOUT,STDERRにStackdriverLogging形式のログを出力し、StackdriverLoggingに自動的に取り込んでもらう場合のlogger

func NewLogrusLogging

func NewLogrusLogging() *LogrusLogging

NewLogrusLogging New LogrusLogging

func (*LogrusLogging) AccessLog

func (logrus *LogrusLogging) AccessLog(data *logging.AccessLogEntry)

AccessLog ginのアクセスログの出力

func (*LogrusLogging) Close

func (logrus *LogrusLogging) Close()

Close 特になにもしていない

func (*LogrusLogging) Debug

func (logrus *LogrusLogging) Debug(data interface{})

Debug Debugレベルのアプリケーションログの出力

func (*LogrusLogging) Error

func (logrus *LogrusLogging) Error(data interface{})

Error Errorレベルのアプリケーションログの出力

func (*LogrusLogging) Info

func (logrus *LogrusLogging) Info(data interface{})

Info Infoレベルのアプリケーションログの出力

func (*LogrusLogging) SQLLog

func (logrus *LogrusLogging) SQLLog(v1 interface{}, v2 interface{}, v3 interface{})

SQLLog gormのSQLログの出力

func (*LogrusLogging) Warning

func (logrus *LogrusLogging) Warning(data interface{})

Warning Warningレベルのアプリケーションログの出力

type StackdriverLogging

type StackdriverLogging struct {
	Client *logging.Client
}

StackdriverLogging StackdriverLoggingのAPIを叩いて、直接ログを送る場合のlogger

func NewStackdriverLogging

func NewStackdriverLogging() *StackdriverLogging

NewStackdriverLogging New StackdriverLogging

func (*StackdriverLogging) AccessLog

func (stlog *StackdriverLogging) AccessLog(data *ulog.AccessLogEntry)

AccessLog ginのアクセスログの出力

func (*StackdriverLogging) Close

func (stlog *StackdriverLogging) Close()

Close Close処理

func (*StackdriverLogging) Debug

func (stlog *StackdriverLogging) Debug(data interface{})

Debug Debugレベルのアプリケーションログの出力

func (*StackdriverLogging) Error

func (stlog *StackdriverLogging) Error(data interface{})

Error Errorレベルのアプリケーションログの出力

func (*StackdriverLogging) Info

func (stlog *StackdriverLogging) Info(data interface{})

Info Infoレベルのアプリケーションログの出力

func (*StackdriverLogging) SQLLog

func (stlog *StackdriverLogging) SQLLog(v1 interface{}, v2 interface{}, v3 interface{})

SQLLog gormのSQLログの出力

func (*StackdriverLogging) Warning

func (stlog *StackdriverLogging) Warning(data interface{})

Warning Warningレベルのアプリケーションログの出力

Jump to

Keyboard shortcuts

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