logger

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 20

Documentation

Overview

Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level         string
	OutputPath    []string
	ErrOutputPath []string
	Encoding      string
	Name          string
}

type SugarLogger

type SugarLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

func New

func New(c *Config, opts ...zap.Option) (*SugarLogger, error)

func (*SugarLogger) IsDebug added in v0.2.9

func (l *SugarLogger) IsDebug() bool

func (*SugarLogger) SetLogLevel

func (l *SugarLogger) SetLogLevel(level string) error

SetLogLevel is used only for tests

func (*SugarLogger) Warning

func (l *SugarLogger) Warning(v ...interface{})

func (*SugarLogger) Warningf

func (l *SugarLogger) Warningf(format string, v ...interface{})

func (*SugarLogger) With

func (l *SugarLogger) With(args ...interface{}) *SugarLogger

Jump to

Keyboard shortcuts

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