Documentation ¶
Index ¶
- Constants
- func Config(ctx context.Context, name string, path ...string) (interface{}, error)
- func ConfigString(ctx context.Context, name string, path ...string) (string, error)
- func Init(ctx context.Context, appName string) (context.Context, context.CancelFunc, error)
- func Secret(ctx context.Context, name string, path ...string) (interface{}, error)
- func SecretString(ctx context.Context, name string, path ...string) (string, error)
- func TraceErr(err error, skipCallers int) error
- type Severity
- type TracedErr
Constants ¶
View Source
const ( // Default means the log entry has no assigned severity level. Default = log.Default // Debug means debug or trace information. Debug = log.Debug // Info means routine information, such as ongoing status or performance. Info = log.Info // Notice means normal but significant events, such as start up, shut down, or configuration. Notice = log.Notice // Warning means events that might cause problems. Warning = log.Warning // Error means events that are likely to cause problems. Error = log.Error // Critical means events that cause more severe problems or brief outages. Critical = log.Critical // Alert means a person must take an action immediately. Alert = log.Alert // Emergency means one or more systems are unusable. Emergency = log.Emergency )
Variables ¶
This section is empty.
Functions ¶
func ConfigString ¶ added in v0.0.15
ConfigString wraps Config and converts the returned interface{} to a string.
func SecretString ¶ added in v0.0.15
SecretString wraps Secret and converts the returned interface{} to a string.
Types ¶
type TracedErr ¶ added in v0.0.6
type TracedErr struct {
// contains filtered or unexported fields
}
func (TracedErr) ErrorDetails ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.