log

package
v0.0.0-...-3f388d4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary(key string, val []byte) log.Field

func Bool

func Bool(key string, val bool) log.Field

func ByteString

func ByteString(key string, val []byte) log.Field

func Debug

func Debug(msg string, fields ...log.Field)

func Error

func Error(msg string, fields ...log.Field)

func Float64

func Float64(key string, val float64) log.Field

func Info

func Info(msg string, fields ...log.Field)

func Int

func Int(key string, val int) log.Field

func Int16

func Int16(key string, val int16) log.Field

func Int32

func Int32(key string, val int32) log.Field

func Int64

func Int64(key string, val int64) log.Field

func Int8

func Int8(key string, val int8) log.Field

func String

func String(key string, val string) log.Field

func Uint

func Uint(key string, val uint) log.Field

func Uint16

func Uint16(key string, val uint16) log.Field

func Uint32

func Uint32(key string, val uint32) log.Field

func Uint64

func Uint64(key string, val uint64) log.Field

func Uint8

func Uint8(key string, val uint8) log.Field

func Warn

func Warn(msg string, fields ...log.Field)

Types

type PluginLogger

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

func NewPluginLogger

func NewPluginLogger(tag string, identifier map[string]string) *PluginLogger

func (*PluginLogger) Debug

func (l *PluginLogger) Debug(msg string, fields ...log.Field)

func (*PluginLogger) Error

func (l *PluginLogger) Error(msg string, err error, fields ...log.Field)

func (*PluginLogger) Info

func (l *PluginLogger) Info(msg string, fields ...log.Field)

func (*PluginLogger) SetIdentifier

func (l *PluginLogger) SetIdentifier(identifier map[string]string)

func (*PluginLogger) SetTag

func (l *PluginLogger) SetTag(tag string)

func (*PluginLogger) Warn

func (l *PluginLogger) Warn(msg string, err error, fields ...log.Field)

Jump to

Keyboard shortcuts

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