Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ignore = &IgnoreLogger{}
Functions ¶
Types ¶
type EntryLogger ¶
type EntryLogger struct { Logs []*pb_handler.LogEntry // 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) Log ¶
func (c *EntryLogger) Log(call otto.FunctionCall)
type IgnoreLogger ¶
type IgnoreLogger struct{}
func (*IgnoreLogger) Enter ¶
func (c *IgnoreLogger) Enter(function string)
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) }
Logger is something that can be logged to, saving the logs for later use
Click to show internal directories.
Click to hide internal directories.