Documentation
¶
Index ¶
- Constants
- type FileLogger
- func (this *FileLogger) ApplyConfig(conf config.Config)
- func (this *FileLogger) Debug(args ...interface{})
- func (this *FileLogger) Debugf(format string, args ...interface{})
- func (this *FileLogger) Error(args ...interface{})
- func (this *FileLogger) Errorf(format string, args ...interface{})
- func (this *FileLogger) GetLogFile() *os.File
- func (this *FileLogger) GetLogFilePath() string
- func (this *FileLogger) GetLogFiles() *value.MapValue
- func (this *FileLogger) Info(args ...interface{})
- func (this *FileLogger) Infof(format string, args ...interface{})
- func (this *FileLogger) Infoln(args ...interface{})
- func (this *FileLogger) Printf(id string, format string, args ...interface{})
- func (this *FileLogger) Println(id string, args ...interface{})
- func (this *FileLogger) PrintlnStd(msg string, sysout bool)
- func (this *FileLogger) Read(file string, endpos int64, length int64) *LogData
- func (this *FileLogger) SetLevel(lv int)
- func (this *FileLogger) Sysout(message string)
- func (this *FileLogger) Warn(args ...interface{})
- func (this *FileLogger) Warnf(format string, args ...interface{})
- type FileLoggerOption
- func WithConfigObserver(obj *config.ConfigObserver) FileLoggerOption
- func WithContext(ctx context.Context, cancel context.CancelFunc) FileLoggerOption
- func WithHomePath(home string) FileLoggerOption
- func WithLevel(lv int) FileLoggerOption
- func WithOnameLogID(oname, logID string) FileLoggerOption
- func WithStdout(b bool) FileLoggerOption
- type LogData
Constants ¶
View Source
const (
HOME_ENV_KEY = "WHATAP_HOME"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
func GetFileLogger ¶
func GetFileLogger(opts ...FileLoggerOption) *FileLogger
func NewFileLogger ¶
func NewFileLogger(opts ...FileLoggerOption) *FileLogger
func (*FileLogger) ApplyConfig ¶
func (this *FileLogger) ApplyConfig(conf config.Config)
func (*FileLogger) Debugf ¶
func (this *FileLogger) Debugf(format string, args ...interface{})
debug level, nocache
func (*FileLogger) Error ¶
func (this *FileLogger) Error(args ...interface{})
func (*FileLogger) Errorf ¶
func (this *FileLogger) Errorf(format string, args ...interface{})
func (*FileLogger) GetLogFile ¶
func (this *FileLogger) GetLogFile() *os.File
func (*FileLogger) GetLogFilePath ¶
func (this *FileLogger) GetLogFilePath() string
func (*FileLogger) GetLogFiles ¶
func (this *FileLogger) GetLogFiles() *value.MapValue
func (*FileLogger) Info ¶
func (this *FileLogger) Info(args ...interface{})
func (*FileLogger) Infof ¶
func (this *FileLogger) Infof(format string, args ...interface{})
func (*FileLogger) Infoln ¶
func (this *FileLogger) Infoln(args ...interface{})
func (*FileLogger) Printf ¶
func (this *FileLogger) Printf(id string, format string, args ...interface{})
첫번째 인수는 무조건 String으로 ID 값을 넣어야 함( WA111 형식) 해당 ID로 중복 확인.
func (*FileLogger) Println ¶
func (this *FileLogger) Println(id string, args ...interface{})
func (*FileLogger) PrintlnStd ¶
func (this *FileLogger) PrintlnStd(msg string, sysout bool)
func (*FileLogger) Read ¶
func (this *FileLogger) Read(file string, endpos int64, length int64) *LogData
func (*FileLogger) SetLevel ¶
func (this *FileLogger) SetLevel(lv int)
func (*FileLogger) Sysout ¶
func (this *FileLogger) Sysout(message string)
func (*FileLogger) Warn ¶
func (this *FileLogger) Warn(args ...interface{})
func (*FileLogger) Warnf ¶
func (this *FileLogger) Warnf(format string, args ...interface{})
type FileLoggerOption ¶
type FileLoggerOption interface {
// contains filtered or unexported methods
}
func WithConfigObserver ¶
func WithConfigObserver(obj *config.ConfigObserver) FileLoggerOption
func WithContext ¶
func WithContext(ctx context.Context, cancel context.CancelFunc) FileLoggerOption
func WithHomePath ¶
func WithHomePath(home string) FileLoggerOption
func WithLevel ¶
func WithLevel(lv int) FileLoggerOption
func WithOnameLogID ¶
func WithOnameLogID(oname, logID string) FileLoggerOption
func WithStdout ¶
func WithStdout(b bool) FileLoggerOption
Click to show internal directories.
Click to hide internal directories.