Documentation
¶
Index ¶
- Constants
- func Errorf(id string, format string, v ...interface{})
- func Errorln(id string, v ...interface{})
- func GetCallStack() string
- func GetLogHome() string
- func Info(id string, message string)
- func Infof(id string, format string, v ...interface{})
- func Infoln(id string, v ...interface{})
- func LoggerMain()
- func Printf(id string, format string, v ...interface{})
- func Println(id string, v ...interface{})
- func PrintlnError(id, message string, t error)
- func PrintlnStd(msg string, sysout bool)
- func SetLogID(logID string)
- func SetLogInterval(i int)
- func SetLogKeepDays(i int)
- func SetLogRotationEnabled(b bool)
- func Sysout(message string)
- func Update(oname string)
- type FileLog
- type LogData
- type Logger
- func (this *Logger) Debug(args ...interface{})
- func (this *Logger) Debugf(format string, args ...interface{})
- func (this *Logger) Error(args ...interface{})
- func (this *Logger) Errorf(format string, args ...interface{})
- func (this *Logger) GetLogFiles() *value.MapValue
- func (this *Logger) Info(args ...interface{})
- func (this *Logger) Infof(format string, args ...interface{})
- func (this *Logger) Infoln(args ...interface{})
- func (this *Logger) Print(message string)
- func (this *Logger) Printf(id string, format string, args ...interface{})
- func (this *Logger) Println(id string, args ...interface{})
- func (this *Logger) Read(file string, endpos int64, length int64) *LogData
- func (this *Logger) SetLevel(lv int)
- func (this *Logger) Warn(args ...interface{})
- func (this *Logger) Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( LOG_LEVEL_ERROR = 3 LOG_LEVEL_WARN = 2 LOG_LEVEL_INFO = 1 LOG_LEVEL_DEBUG = 0 )
Variables ¶
This section is empty.
Functions ¶
func GetCallStack ¶
func GetCallStack() string
TODO runtime/debug 에서 현재 시점의 스택 정보를 가져올 수 있지만 인수로 맏는 error의 스택은 확인 못함
func GetLogHome ¶
func GetLogHome() string
func LoggerMain ¶
func LoggerMain()
func Println ¶
func Println(id string, v ...interface{})
logutil.Println 을 동일하게 구현 첫번째 인수는 무조건 String으로 ID 값을 넣어야 함( WA111 형식) 해당 ID로 중복 확인.
func PrintlnError ¶
func PrintlnStd ¶
Types ¶
type LogData ¶
func NewLogData ¶
type Logger ¶
type Logger struct { Log *log.Logger Level int Shutdown bool // contains filtered or unexported fields }
func (*Logger) Debug ¶ added in v0.4.0
func (this *Logger) Debug(args ...interface{})
Debug logs a debug message, patterned after log.Print.
func (*Logger) Error ¶ added in v0.4.0
func (this *Logger) Error(args ...interface{})
Error logs an error message, patterned after log.Print.
func (*Logger) GetLogFiles ¶
func (*Logger) Info ¶ added in v0.4.0
func (this *Logger) Info(args ...interface{})
Info logs an information message, patterned after log.Print.
func (*Logger) Infof ¶ added in v0.4.0
Infof logs an information message, patterned after log.Printf.
Click to show internal directories.
Click to hide internal directories.