Documentation ¶
Index ¶
- func AppInstance() string
- func AppMode() string
- func AppRegion() string
- func AppVersion() string
- func AppZone() string
- func BuildHost() string
- func BuildStatus() string
- func BuildTime() string
- func BuildUser() string
- func EgoGovernorEnableConfig() bool
- func EgoLogEnableAddCaller() bool
- func EgoLogExtraKeys() []string
- func EgoLogPath() string
- func EgoLogTimeType() string
- func EgoLogWriter() string
- func EgoTraceIDName() string
- func EgoVersion() string
- func EnableLoggerAddApp() bool
- func GoVersion() string
- func HostName() string
- func IsDevelopmentMode() bool
- func Name() string
- func PrintVersion()
- func SetEgoDebug(flag string)
- func StartTime() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppInstance ¶ added in v0.3.9
func AppInstance() string
AppInstance returns application instance ID.
func EgoGovernorEnableConfig ¶ added in v0.8.1
func EgoGovernorEnableConfig() bool
EgoGovernorEnableConfig ...
func EgoLogEnableAddCaller ¶ added in v1.1.9
func EgoLogEnableAddCaller() bool
EgoLogEnableAddCaller ...
func EgoLogExtraKeys ¶ added in v0.5.8
func EgoLogExtraKeys() []string
EgoLogExtraKeys returns custom extra log keys.
func EgoLogPath ¶ added in v0.3.4
func EgoLogPath() string
EgoLogPath returns application log file directory path when user choose to write log fo file.
func EgoTraceIDName ¶ added in v0.3.6
func EgoTraceIDName() string
EgoTraceIDName returns the key in Metadata for storing traceID
func EnableLoggerAddApp ¶ added in v0.3.4
func EnableLoggerAddApp() bool
EnableLoggerAddApp returns flag if logger has append app Field to log entry.
func IsDevelopmentMode ¶
func IsDevelopmentMode() bool
IsDevelopmentMode returns flag if application is in debug mode.
func SetEgoDebug ¶ added in v1.1.0
func SetEgoDebug(flag string)
SetEgoDebug returns the flag if debug mode has been triggered
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.