Documentation ¶
Overview ¶
Package gmlog implements a simple logging package. It defines a type, Logger, with methods for formatting output. It is anologous to standard library's log package, but prints lines of logs on gomobile application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
A Logger represents an active logging object that generates lines of output to glutil Images (useful in gomobile applications).
func New ¶
New creates a Logger tied to the current GL images. Limit limits amount of lines to be displayed.
func (*Logger) Fatal ¶
func (l *Logger) Fatal(v ...interface{})
Fatal is equivalent to l.Print() followed by a call to os.Exit(1).
func (*Logger) Print ¶
func (l *Logger) Print(v ...interface{})
Print adds new message to logger buffer.
Click to show internal directories.
Click to hide internal directories.