Documentation ¶
Index ¶
- func ClientTransport(origin runtime.ClientTransport) runtime.ClientTransport
- func Ctx(ctx context.Context) zerolog.LogObjectMarshaler
- func New(cfg Config, serviceName, version, env, host string) zerolog.Logger
- func SlackWriter(webhookURL string, level zerolog.Level) zerolog.LevelWriter
- func StdoutWriter(pretty bool) io.Writer
- type Config
- type JobLog
- type JobLogger
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTransport ¶
func ClientTransport(origin runtime.ClientTransport) runtime.ClientTransport
ClientTransport returns OpenAPI client wrapper for propagating request id.
func SlackWriter ¶
func SlackWriter(webhookURL string, level zerolog.Level) zerolog.LevelWriter
Types ¶
type Config ¶
type Config struct { Level string `yaml:"level" env:"LOGGER_LEVEL" env-default:"debug" env-description:"Enabled verbose logging"` Pretty bool `` /* 131-byte string literal not displayed */ SlackWebhookURL string `yaml:"slack_webhook_url" env:"LOGGER_SLACK_WEBHOOK_URL" env-description:"Internal variable"` }
type JobLogger ¶
type JobLogger struct {
// contains filtered or unexported fields
}
func NewJobLogger ¶
func NewJobLogger(store *repository.Store) *JobLogger
func (*JobLogger) ListByJobID ¶
Click to show internal directories.
Click to hide internal directories.