Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchTable ¶
type DispatchTable map[string]func(wf Dispatcher, msg *log.LogMessage)
DispatchTable is a level -> execution function map
type Dispatcher ¶
type Dispatcher interface { Debug(...interface{}) Error(...interface{}) Info(...interface{}) }
Dispatcher dispatches logs based on loglevel.
type LogJournal ¶
type LogJournal struct { Journal map[string][]*log.LogMessage // contains filtered or unexported fields }
LogJournal is a journal of log entries intended to facilitate mocking the logsvc.
func MakeLogServer ¶
func MakeLogServer() (*handler.H, chan struct{}, *LogJournal, error)
MakeLogServer makes a logsvc.
func (*LogJournal) Append ¶
func (lj *LogJournal) Append(level string, msg *log.LogMessage)
Append appends a message.
func (*LogJournal) Reset ¶
func (lj *LogJournal) Reset()
Reset resets the log journal, erasing all recorded messages.
type LogServer ¶
type LogServer struct {
DispatchTable DispatchTable
}
LogServer is the handle into the logging grpc service
Click to show internal directories.
Click to hide internal directories.