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.

16 lines
292 B

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