Documentation ¶
Index ¶
- Constants
- Variables
- func AppendUniqueIdentifier(ctx context.Context, guid uint64) context.Context
- func Deserialize(raw []byte, data any)
- func FormatStringerList[T fmt.Stringer](description string, listToPrint []T) string
- func GenerateUniqueIdentifier() uint64
- func GetUniqueIdentifier(ctx context.Context) (guid uint64, found bool)
- func LavaFormatDebug(description string, attributes ...Attribute) error
- func LavaFormatError(description string, err error, attributes ...Attribute) error
- func LavaFormatFatal(description string, err error, attributes ...Attribute)
- func LavaFormatInfo(description string, attributes ...Attribute) error
- func LavaFormatLog(description string, err error, attributes []Attribute, severity uint) error
- func LavaFormatPanic(description string, err error, attributes ...Attribute)
- func LavaFormatWarning(description string, err error, attributes ...Attribute) error
- func LogLavaEvent(ctx sdk.Context, logger log.Logger, name string, attributes map[string]string, ...)
- func LoggingLevel(logLevel string)
- func Serialize(data any) []byte
- func WithUniqueIdentifier(ctx context.Context, guid uint64) context.Context
- type Attribute
- type LavaMutex
- type Lockable
Constants ¶
View Source
const ( LAVA_LOG_DEBUG = iota LAVA_LOG_INFO LAVA_LOG_WARN LAVA_LOG_ERROR LAVA_LOG_FATAL LAVA_LOG_PANIC )
View Source
const (
EventPrefix = "lava_"
)
View Source
const TIMEOUT = 10
Variables ¶
View Source
var ( TimeoutMutex = "false" TimeoutMutexBoolean, _ = strconv.ParseBool(TimeoutMutex) )
View Source
var JsonFormat = false
Functions ¶
func AppendUniqueIdentifier ¶
func Deserialize ¶
func FormatStringerList ¶
func GenerateUniqueIdentifier ¶
func GenerateUniqueIdentifier() uint64
func LavaFormatDebug ¶
func LavaFormatError ¶
func LavaFormatFatal ¶
func LavaFormatInfo ¶
func LavaFormatLog ¶
func LavaFormatPanic ¶
func LavaFormatWarning ¶
func LogLavaEvent ¶
func LoggingLevel ¶ added in v0.4.3
func LoggingLevel(logLevel string)
Types ¶
type Attribute ¶
type Attribute struct { Key string Value interface{} }
func StringMapToAttributes ¶
Click to show internal directories.
Click to hide internal directories.