Documentation ¶
Index ¶
- Constants
- Variables
- func DeferCloseBodyErr(Body io.ReadCloser, label string)
- func Exit(code int)
- func LineInfo(calldepth int, format string) string
- func LogLevelString(Level LogLevel) string
- func MyExecBaseName() string
- func SetProfile(label string, bob interface{})
- func TimeWithTz(Time time.Time) string
- type LogEntry
- type LogLevel
- type Logger
- func (l *Logger) AddLogEntry(Entry LogEntry) *Logger
- func (l *Logger) BufferAsHtml() string
- func (l *Logger) Coref(Level LogLevel, format string, options ...interface{}) bool
- func (l *Logger) Critf(format string, options ...interface{}) bool
- func (l *Logger) Debugf(format string, options ...interface{}) bool
- func (l *Logger) DepthOffsetAbs(i int)
- func (l *Logger) DepthOffsetRel(i int)
- func (l *Logger) ErrErrf(format string, options ...interface{}) error
- func (l *Logger) ErrorIff(err error, format string, options ...interface{}) bool
- func (l *Logger) Errorf(format string, options ...interface{}) bool
- func (l *Logger) FatalIff(err error, format string, options ...interface{})
- func (l *Logger) FatalInfoIff(err error, format string, options ...interface{})
- func (l *Logger) FatalTracef(format string, options ...interface{})
- func (l *Logger) Fatalf(format string, options ...interface{})
- func (l *Logger) Infof(format string, options ...interface{}) bool
- func (l *Logger) Init() error
- func (l *Logger) LogLevelFromString(Level string) LogLevel
- func (l *Logger) LogName() string
- func (l *Logger) Panicf(format string, options ...interface{})
- func (l *Logger) PrintIff(err error, format string, options ...interface{})
- func (l *Logger) Printf(format string, options ...interface{})
- func (l *Logger) RelayServer(c net.Conn)
- func (l *Logger) Secretf(format string, options ...interface{}) bool
- func (l *Logger) ServeLogSocket(Path string)
- func (l *Logger) SetBaseName(Base string)
- func (l *Logger) SetBufferLines(x int) *Logger
- func (l *Logger) SetBufferSize(x int) *Logger
- func (l *Logger) SetFlags(Flags int) *Logger
- func (l *Logger) SetLineAbove(Level LogLevel) *Logger
- func (l *Logger) SetLineFormat(format string) *Logger
- func (l *Logger) SetOutput(w io.Writer) *Logger
- func (l *Logger) SetThreshold(Level LogLevel) *Logger
- func (l *Logger) SetTraceAbove(Level LogLevel) *Logger
- func (l *Logger) Warnf(format string, options ...interface{}) bool
Constants ¶
View Source
const ( LstdFlags int = real_log.LstdFlags Lmicroseconds int = real_log.Lmicroseconds )
View Source
const (
TIMEFORMAT_SECONDS_WITH_TZ = "2006-01-02 15:04:05 MST"
)
Variables ¶
View Source
var ExitProfiling bool
View Source
var SysBaseLogPath string = "/data/logs"
Functions ¶
func DeferCloseBodyErr ¶
func DeferCloseBodyErr(Body io.ReadCloser, label string)
func LogLevelString ¶
func MyExecBaseName ¶
func MyExecBaseName() string
func SetProfile ¶
func SetProfile(label string, bob interface{})
func TimeWithTz ¶
Types ¶
type Logger ¶
type Logger struct { MinLevel LogLevel MinBufferLevel LogLevel TraceAbove LogLevel LineAbove LogLevel LogBase string RealLogger *real_log.Logger BufferLineLimit int BufferSizeLimit int Buffer []LogEntry LinenumFormat string // contains filtered or unexported fields }
func (*Logger) AddLogEntry ¶
func (*Logger) BufferAsHtml ¶
func (*Logger) DepthOffsetAbs ¶
func (*Logger) DepthOffsetRel ¶
func (*Logger) ErrErrf ¶
Little play on words. It's a logged errorf() that returns an error so you can return it AS an error
func (*Logger) FatalInfoIff ¶
func (*Logger) FatalTracef ¶
func (*Logger) LogLevelFromString ¶
func (*Logger) RelayServer ¶
func (*Logger) ServeLogSocket ¶
func (*Logger) SetBaseName ¶
func (*Logger) SetBufferLines ¶
func (*Logger) SetBufferSize ¶
func (*Logger) SetLineAbove ¶
func (*Logger) SetLineFormat ¶
func (*Logger) SetThreshold ¶
func (*Logger) SetTraceAbove ¶
Click to show internal directories.
Click to hide internal directories.