Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvFile string
View Source
var GinLevel golog.Level = 6
View Source
var InfoEnvi *types.Environment
View Source
var InfoIdentService *types.IdentityService
App Informations
View Source
var InfoIdentSource *types.IdentitySource
View Source
var InfoNetwork *types.IdentityNetwork
View Source
var InfoReplica *types.Replica
View Source
var Stopper = []func(){}
List of stop function
Functions ¶
func OnShutdown ¶ added in v1.4.6
func OnShutdown()
Types ¶
type LetsFormatter ¶
type LetsFormatter struct { Indent string // contains filtered or unexported fields }
LetsFormatter is a Formatter type for JSON logs.
func (*LetsFormatter) Format ¶
Format prints the logs in JSON format.
Usage: logger.SetFormat("json") or logger.SetLevelFormat("info", "json")
func (*LetsFormatter) Options ¶
func (f *LetsFormatter) Options(opts ...interface{}) golog.Formatter
Options sets the options for the JSON Formatter (currently only indent).
func (*LetsFormatter) String ¶
func (f *LetsFormatter) String() string
String returns the name of the Formatter. In this case it returns "json". It's used to map the formatter names with their implementations.
Click to show internal directories.
Click to hide internal directories.