Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DS is the location of the log dS file DS = "core" + string(os.PathSeparator) + "log.ds" // AuthType is the log type for authentication log entries AuthType = "authentication" // Four04Type is the log type for 404 errors Four04Type = "404" )
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(err error)
Error logs and error to the core log datastore. For core code the rule for error logging is to not log it until it's "bubbled up to the top". Meaning only the http handler should log the error. This is to prevent the same error from being logged a bunch of times.
func SyslogError ¶
func SyslogError(err error)
SyslogError logs the error to the system log, UNIX only
Types ¶
type Iter ¶
type Iter struct { Type string `json:"type,omitempty"` From *json.RawMessage `json:"from,omitempty"` To *json.RawMessage `json:"to,omitempty"` Skip int `json:"skip,omitempty"` Limit int `json:"limit,omitempty"` Order string `json:"order,omitempty"` }
Iter is an iterator for log entries
Click to show internal directories.
Click to hide internal directories.