Documentation ¶
Index ¶
- func Set(ev Eventer)
- type Eventer
- type Log
- func (l *Log) Commit(commFunc func(*Log) error)
- func (l *Log) Field(key string) driver.Value
- func (l *Log) FieldBool(key string) bool
- func (l *Log) FieldBytes(key string) []byte
- func (l *Log) FieldFloat64(key string) float64
- func (l *Log) FieldInt64(key string) int64
- func (l *Log) FieldString(key string) string
- func (l *Log) FieldTime(key string) time.Time
- func (l *Log) With(key string, value driver.Value) *Log
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Log struct { Logger Eventer // `struct{}` by default Event event.Event Timestamp time.Time // contains filtered or unexported fields }
Log is a single log message
func (*Log) Commit ¶
Commit sends the message to the database. Pass in your custom function according to your database configuration
func (*Log) FieldBytes ¶
FieldBytes return the field as a byte slice
func (*Log) FieldFloat64 ¶
FieldFloat64 return the field as a float64 panics if the field is not a float
func (*Log) FieldInt64 ¶
FieldInt64 return the field as an int64 panics if the field is not an int
func (*Log) FieldString ¶
FieldString return the field as a string
Click to show internal directories.
Click to hide internal directories.