xlog

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Kross IAM Project. https://github.com/krossdev/iam/blob/main/LICENSE

Copyright (c) 2021 Kross IAM Project. https://github.com/krossdev/iam/blob/main/LICENSE

Copyright (c) 2021 Kross IAM Project. https://github.com/krossdev/iam/blob/main/LICENSE

Index

Constants

View Source
const (
	FRealm = "realm" // realm
)

common field names

Variables

View Source
var X = logrus.StandardLogger().WithField(FRealm, "ms")

Functions

func F

func F(args ...interface{}) *logrus.Entry

F is a shortcut of withFields

withFields usage:  xlog.withFields(logrus.Fields{"key", value, ...}).Info(...)
F usage: xlog.F("key", value, ...).Info(...)

func Setup

func Setup(debug bool, config *config.Log)

Setup logger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL