Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ignore = &IgnoreLogger{}
Functions ¶
Types ¶
type EntryLogger ¶
type EntryLogger struct {
// contains filtered or unexported fields
}
console is a Logger that saves the logs as LogEntries
func NewEntryLogger ¶
func NewEntryLogger() *EntryLogger
Console returns a new Logger that save the logs to
func (*EntryLogger) Enter ¶
func (c *EntryLogger) Enter(function string)
func (*EntryLogger) Entries ¶
func (c *EntryLogger) Entries() []*pb_handler.LogEntry
func (*EntryLogger) Log ¶
func (c *EntryLogger) Log(call otto.FunctionCall)
type IgnoreLogger ¶
type IgnoreLogger struct{}
func (*IgnoreLogger) Enter ¶
func (c *IgnoreLogger) Enter(function string)
func (*IgnoreLogger) Entries ¶
func (c *IgnoreLogger) Entries() []*pb_handler.LogEntry
func (*IgnoreLogger) Log ¶
func (c *IgnoreLogger) Log(call otto.FunctionCall)
type Logger ¶
type Logger interface { // Log passes the console.log function call to the logger Log(call otto.FunctionCall) // Enter tells the Logger what function it is currently in Enter(function string) // Entries returns the log Entries() []*pb_handler.LogEntry }
Logger is something that can be logged to, saving the logs for later use
Click to show internal directories.
Click to hide internal directories.