README
mozlog

A logging library which conforms to Mozilla's logging standard.
Example Usage
import "go.mozilla.org/mozlog"
func init() {
mozlog.Logger.LoggerName = "ApplicationName"
}
Documentation
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = &MozLogger{ Output: os.Stdout, LoggerName: "Application", }
Functions ¶
Types ¶
type AppLog ¶
type AppLog struct { Timestamp int64 Time string Type string Logger string Hostname string `json:",omitempty"` EnvVersion string Pid int `json:",omitempty"` Severity int `json:",omitempty"` Fields map[string]interface{} }
AppLog implements Mozilla logging standard