Documentation ¶
Overview ¶
-------------------------------------------------------------------------
* * plugin_logger.go * logger for polardb pg plugin * * * Copyright (c) 2021, Alibaba Group Holding Limited * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * IDENTIFICATION * common/polardb_pg/log/plugin_logger.go *-------------------------------------------------------------------------
Index ¶
- func Binary(key string, val []byte) log.Field
- func Bool(key string, val bool) log.Field
- func ByteString(key string, val []byte) log.Field
- func Debug(msg string, fields ...log.Field)
- func Error(msg string, fields ...log.Field)
- func Float64(key string, val float64) log.Field
- func Info(msg string, fields ...log.Field)
- func Int(key string, val int) log.Field
- func Int16(key string, val int16) log.Field
- func Int32(key string, val int32) log.Field
- func Int64(key string, val int64) log.Field
- func Int8(key string, val int8) log.Field
- func String(key string, val string) log.Field
- func Uint(key string, val uint) log.Field
- func Uint16(key string, val uint16) log.Field
- func Uint32(key string, val uint32) log.Field
- func Uint64(key string, val uint64) log.Field
- func Uint8(key string, val uint8) log.Field
- func Warn(msg string, fields ...log.Field)
- type PluginLogger
- func (l *PluginLogger) Debug(msg string, fields ...log.Field)
- func (l *PluginLogger) Error(msg string, err error, fields ...log.Field)
- func (l *PluginLogger) Info(msg string, fields ...log.Field)
- func (l *PluginLogger) SetIdentifier(identifier map[string]string)
- func (l *PluginLogger) SetTag(tag string)
- func (l *PluginLogger) Warn(msg string, err error, fields ...log.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginLogger ¶
type PluginLogger struct {
// contains filtered or unexported fields
}
func NewPluginLogger ¶
func NewPluginLogger(tag string, identifier map[string]string) *PluginLogger
func (*PluginLogger) Error ¶
func (l *PluginLogger) Error(msg string, err error, fields ...log.Field)
func (*PluginLogger) SetIdentifier ¶
func (l *PluginLogger) SetIdentifier(identifier map[string]string)
func (*PluginLogger) SetTag ¶
func (l *PluginLogger) SetTag(tag string)
Click to show internal directories.
Click to hide internal directories.