log

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )

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

https://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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(str string) string

func Debug

func Debug(vals ...interface{})

func Debugf

func Debugf(format string, vals ...interface{})

func Error

func Error(vals ...interface{})

func Errorf

func Errorf(format string, vals ...interface{})

func Fatal

func Fatal(vals ...interface{})

func Fatalf

func Fatalf(format string, vals ...interface{})

func Info

func Info(vals ...interface{})

func Infof

func Infof(format string, vals ...interface{})

func Init

func Init(opts ...Option)

func Warn

func Warn(vals ...interface{})

func Warnf

func Warnf(format string, vals ...interface{})

Types

type Logger

type Logger interface {
	Debug(vals ...interface{})
	Debugf(format string, vals ...interface{})
	Info(vals ...interface{})
	Infof(format string, vals ...interface{})
	Warn(vals ...interface{})
	Warnf(format string, vals ...interface{})
	Error(vals ...interface{})
	Errorf(format string, vals ...interface{})
	Fatal(vals ...interface{})
	Fatalf(format string, vals ...interface{})
}

type Option added in v0.0.2

type Option func(*option)

func WithFormat added in v0.0.2

func WithFormat(str string) Option

func WithLevel added in v0.0.2

func WithLevel(str string) Option

func WithLogger added in v0.0.2

func WithLogger(logger Logger) Option

func WithLoggerType added in v0.0.2

func WithLoggerType(str string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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