logger

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

View Source
const LogPrefix = "STREAM: "

LogPrefix is prefixed to all NATS Streaming log messages

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger natsd.Logger

Logger interface for the Streaming project. This is an alias of the NATS Server's Logger interface.

type StanLogger

type StanLogger struct {
	// contains filtered or unexported fields
}

StanLogger is the logger used in this project and implements the Logger interface.

func NewStanLogger

func NewStanLogger() *StanLogger

NewStanLogger returns an instance of StanLogger

func (*StanLogger) Close added in v0.11.0

func (s *StanLogger) Close() error

Close closes this logger, releasing possible held resources.

func (*StanLogger) Debugf

func (s *StanLogger) Debugf(format string, v ...interface{})

Debugf logs a debug statement

func (*StanLogger) Errorf

func (s *StanLogger) Errorf(format string, v ...interface{})

Errorf logs an error

func (*StanLogger) Fatalf

func (s *StanLogger) Fatalf(format string, v ...interface{})

Fatalf logs a fatal error

func (*StanLogger) GetLogger

func (s *StanLogger) GetLogger() Logger

GetLogger returns the logger

func (*StanLogger) Noticef

func (s *StanLogger) Noticef(format string, v ...interface{})

Noticef logs a notice statement

func (*StanLogger) ReopenLogFile added in v0.11.0

func (s *StanLogger) ReopenLogFile()

ReopenLogFile closes and reopen the logfile. Does nothing if the logger is not a file based.

func (*StanLogger) SetLogger

func (s *StanLogger) SetLogger(log Logger, logtime, debug, trace bool, logfile string)

SetLogger sets the logger, debug and trace

func (*StanLogger) Tracef

func (s *StanLogger) Tracef(format string, v ...interface{})

Tracef logs a trace statement

func (*StanLogger) Warnf added in v0.12.0

func (s *StanLogger) Warnf(format string, v ...interface{})

Warnf logs a warning statement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL