You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
292 B

package log
import (
"gitoa.ru/go-4devs/log/field"
)
// Field create field.
func Field(key string, value interface{}) field.Field {
return field.Any(key, value)
}
// FieldError new errors field with key error.
func FieldError(err error) field.Field {
return field.Error("error", err)
}