package logger
import "github.com/nats-io/gnatsd/logger"
Package logger provides logging facilities for the NATS server
Copyright 2012-2014 Apcera Inc. All rights reserved.
Index ¶
- type Logger
- func NewFileLogger(filename string, time, debug, trace, pid bool) *Logger
- func NewStdLogger(time, debug, trace, colors, pid bool) *Logger
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Noticef(format string, v ...interface{})
- func (l *Logger) Tracef(format string, v ...interface{})
- type SysLogger
- func NewRemoteSysLogger(fqn string, debug, trace bool) *SysLogger
- func NewSysLogger(debug, trace bool) *SysLogger
- func (l *SysLogger) Debugf(format string, v ...interface{})
- func (l *SysLogger) Errorf(format string, v ...interface{})
- func (l *SysLogger) Fatalf(format string, v ...interface{})
- func (l *SysLogger) Noticef(format string, v ...interface{})
- func (l *SysLogger) Tracef(format string, v ...interface{})
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the server logger
func NewFileLogger ¶
NewFileLogger creates a logger with output directed to a file
func NewStdLogger ¶
NewStdLogger creates a logger with output directed to Stderr
func (*Logger) Debugf ¶
Debugf logs a debug statement
func (*Logger) Errorf ¶
Errorf logs an error statement
func (*Logger) Fatalf ¶
Fatalf logs a fatal error
func (*Logger) Noticef ¶
Noticef logs a notice statement
func (*Logger) Tracef ¶
Tracef logs a trace statement
type SysLogger ¶
type SysLogger struct {
// contains filtered or unexported fields
}
func NewRemoteSysLogger ¶
func NewSysLogger ¶
func (*SysLogger) Debugf ¶
func (*SysLogger) Errorf ¶
func (*SysLogger) Fatalf ¶
func (*SysLogger) Noticef ¶
func (*SysLogger) Tracef ¶
Source Files ¶
- Version
- v0.9.2
- Published
- Aug 8, 2016
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 7 minutes ago –
Tools for package owners.