Documentation ¶
Index ¶
- type JobLogger
- func (jl *JobLogger) Close() error
- func (jl *JobLogger) Debug(v ...interface{})
- func (jl *JobLogger) Debugf(format string, v ...interface{})
- func (jl *JobLogger) Error(v ...interface{})
- func (jl *JobLogger) Errorf(format string, v ...interface{})
- func (jl *JobLogger) Fatal(v ...interface{})
- func (jl *JobLogger) Fatalf(format string, v ...interface{})
- func (jl *JobLogger) Info(v ...interface{})
- func (jl *JobLogger) Infof(format string, v ...interface{})
- func (jl *JobLogger) Warning(v ...interface{})
- func (jl *JobLogger) Warningf(format string, v ...interface{})
- type ServiceLogger
- func (sl *ServiceLogger) Debug(v ...interface{})
- func (sl *ServiceLogger) Debugf(format string, v ...interface{})
- func (sl *ServiceLogger) Error(v ...interface{})
- func (sl *ServiceLogger) Errorf(format string, v ...interface{})
- func (sl *ServiceLogger) Fatal(v ...interface{})
- func (sl *ServiceLogger) Fatalf(format string, v ...interface{})
- func (sl *ServiceLogger) Info(v ...interface{})
- func (sl *ServiceLogger) Infof(format string, v ...interface{})
- func (sl *ServiceLogger) Warning(v ...interface{})
- func (sl *ServiceLogger) Warningf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
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) Debugf ¶
func (sl *ServiceLogger) Debugf(format string, v ...interface{})
Debugf with format
func (*ServiceLogger) Errorf ¶
func (sl *ServiceLogger) Errorf(format string, v ...interface{})
Errorf with format
func (*ServiceLogger) Fatalf ¶
func (sl *ServiceLogger) Fatalf(format string, v ...interface{})
Fatalf error
func (*ServiceLogger) Infof ¶
func (sl *ServiceLogger) Infof(format string, v ...interface{})
Infof with format
func (*ServiceLogger) Warningf ¶
func (sl *ServiceLogger) Warningf(format string, v ...interface{})
Warningf with format
Click to show internal directories.
Click to hide internal directories.