Documentation ¶
Index ¶
- func GetLogger(ctx context.Context) echo.Logger
- type Logger
- func (l *Logger) Debug(i ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugj(j log.JSON)
- func (l *Logger) Error(i ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorj(j log.JSON)
- func (l *Logger) Fatal(i ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalj(j log.JSON)
- func (l *Logger) Info(i ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoj(j log.JSON)
- func (l *Logger) Level() log.Lvl
- func (l *Logger) Output() io.Writer
- func (l *Logger) Panic(i ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicj(j log.JSON)
- func (l *Logger) Prefix() string
- func (l *Logger) Print(i ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Printj(j log.JSON)
- func (l *Logger) SetHeader(h string)
- func (l *Logger) SetLevel(v log.Lvl)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(p string)
- func (l *Logger) Warn(i ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnj(j log.JSON)
- type LoggerMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is echo logger using cloud logging.
type LoggerMiddleware ¶
type LoggerMiddleware struct {
// contains filtered or unexported fields
}
LoggerMiddleware is appengine echo logger middleware.
func NewLoggerMiddleware ¶
func NewLoggerMiddleware(client *logging.Client, moduleID, projectID, versionID, zone string) *LoggerMiddleware
NewLoggerMiddleware returns appengine echo logger middleware.
func (*LoggerMiddleware) Logger ¶
func (m *LoggerMiddleware) Logger(next echo.HandlerFunc) echo.HandlerFunc
Logger is appengine echo logger middleware. Set application logger to echo.Context and write request log.
Click to show internal directories.
Click to hide internal directories.