logger

package
Version: v0.0.0-...-3a757e4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logPath string, level string) logger.Interface

New logger nil might be returned

Types

type JobLogger

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

JobLogger is an implementation of logger.Interface. It used in the job to output logs to the logfile.

func (*JobLogger) Close

func (jl *JobLogger) Close() error

Close the opened io stream Implements logger.Closer interface

func (*JobLogger) Debug

func (jl *JobLogger) Debug(v ...interface{})

Debug ...

func (*JobLogger) Debugf

func (jl *JobLogger) Debugf(format string, v ...interface{})

Debugf with format

func (*JobLogger) Error

func (jl *JobLogger) Error(v ...interface{})

Error ...

func (*JobLogger) Errorf

func (jl *JobLogger) Errorf(format string, v ...interface{})

Errorf with format

func (*JobLogger) Fatal

func (jl *JobLogger) Fatal(v ...interface{})

Fatal error

func (*JobLogger) Fatalf

func (jl *JobLogger) Fatalf(format string, v ...interface{})

Fatalf error

func (*JobLogger) Info

func (jl *JobLogger) Info(v ...interface{})

Info ...

func (*JobLogger) Infof

func (jl *JobLogger) Infof(format string, v ...interface{})

Infof with format

func (*JobLogger) Warning

func (jl *JobLogger) Warning(v ...interface{})

Warning ...

func (*JobLogger) Warningf

func (jl *JobLogger) Warningf(format string, v ...interface{})

Warningf with format

type ServiceLogger

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

ServiceLogger is an implementation of logger.Interface. It used to log info in workerpool components.

func NewServiceLogger

func NewServiceLogger(level string) *ServiceLogger

NewServiceLogger to create new logger for job service nil might be returned

func (*ServiceLogger) Debug

func (sl *ServiceLogger) Debug(v ...interface{})

Debug ...

func (*ServiceLogger) Debugf

func (sl *ServiceLogger) Debugf(format string, v ...interface{})

Debugf with format

func (*ServiceLogger) Error

func (sl *ServiceLogger) Error(v ...interface{})

Error ...

func (*ServiceLogger) Errorf

func (sl *ServiceLogger) Errorf(format string, v ...interface{})

Errorf with format

func (*ServiceLogger) Fatal

func (sl *ServiceLogger) Fatal(v ...interface{})

Fatal error

func (*ServiceLogger) Fatalf

func (sl *ServiceLogger) Fatalf(format string, v ...interface{})

Fatalf error

func (*ServiceLogger) Info

func (sl *ServiceLogger) Info(v ...interface{})

Info ...

func (*ServiceLogger) Infof

func (sl *ServiceLogger) Infof(format string, v ...interface{})

Infof with format

func (*ServiceLogger) Warning

func (sl *ServiceLogger) Warning(v ...interface{})

Warning ...

func (*ServiceLogger) Warningf

func (sl *ServiceLogger) Warningf(format string, v ...interface{})

Warningf with format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL