Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const DefaultFormat + const JSONFormat + const TextFormat + func ReopenOnSignal(logger *Logger, reopener Reopener) func(context.Context) error + type HCLogAdapter struct + func NewHCLogAdapter(log logrus.FieldLogger, name string) *HCLogAdapter + func (*HCLogAdapter) Trace(_ string, _ ...interface{}) + func (a *HCLogAdapter) CreateEntry(args []interface{}) *logrus.Entry + func (a *HCLogAdapter) Debug(msg string, args ...interface{}) + func (a *HCLogAdapter) Error(msg string, args ...interface{}) + func (a *HCLogAdapter) GetLevel() hclog.Level + func (a *HCLogAdapter) ImpliedArgs() []interface{} + func (a *HCLogAdapter) Info(msg string, args ...interface{}) + func (a *HCLogAdapter) IsDebug() bool + func (a *HCLogAdapter) IsError() bool + func (a *HCLogAdapter) IsInfo() bool + func (a *HCLogAdapter) IsTrace() bool + func (a *HCLogAdapter) IsWarn() bool + func (a *HCLogAdapter) Log(level hclog.Level, msg string, args ...interface{}) + func (a *HCLogAdapter) Name() string + func (a *HCLogAdapter) Named(name string) hclog.Logger + func (a *HCLogAdapter) ResetNamed(name string) hclog.Logger + func (a *HCLogAdapter) SetLevel(hclog.Level) + func (a *HCLogAdapter) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger + func (a *HCLogAdapter) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer + func (a *HCLogAdapter) Warn(msg string, args ...interface{}) + func (a *HCLogAdapter) With(args ...interface{}) hclog.Logger + type LocalTimeHook struct + func (l LocalTimeHook) Fire(entry *logrus.Entry) error + func (l LocalTimeHook) Levels() []logrus.Level + type Logger struct + func NewLogger(options ...Option) (*Logger, error) + type Option func(*Logger) error + func WithFormat(format string) Option + func WithLevel(logLevel string) Option + func WithOutputFile(file string) Option + func WithReopenableOutputFile(reopenableFile *ReopenableFile) Option + type ReopenableFile struct + func NewReopenableFile(name string) (*ReopenableFile, error) + func (r *ReopenableFile) Close() error + func (r *ReopenableFile) Name() string + func (r *ReopenableFile) Reopen() error + func (r *ReopenableFile) Write(b []byte) (n int, err error) + type ReopenableWriteCloser interface + type Reopener interface + Reopen func() error