logger

package
v0.0.0-...-2bff06c Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger - CB-LOG에서 사용하는 "logrus" Logger를 위한 Wrapper 구조

func NewLogger

func NewLogger() *Logger

NewLogger - 초기화된 Logger의 인스턴스 생성

func (*Logger) DisableOutput

func (l *Logger) DisableOutput()

DisableOutput - 로그 출력 비활성화

func (*Logger) SetFormatter

func (l *Logger) SetFormatter(f logrus.Formatter)

SetFormatter - 로그 포맷터 설정

func (*Logger) SetLogLevel

func (l *Logger) SetLogLevel(lv logrus.Level)

SetLogLevel - 로그 레벨 설정

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer)

SetOutput - 로그 출력기 설정

Jump to

Keyboard shortcuts

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