Documentation ¶ Index ¶ type AppHook func NewAppHook(name string) *AppHook func (s *AppHook) Fire(entry *logrus.Entry) error func (s *AppHook) Levels() []logrus.Level type Logger func New(opts ...Option) *Logger type Option func WithLevel(level uint32) Option func WithLogPath(path string) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AppHook ¶ type AppHook struct { Name string } func NewAppHook ¶ func NewAppHook(name string) *AppHook func (*AppHook) Fire ¶ func (s *AppHook) Fire(entry *logrus.Entry) error func (*AppHook) Levels ¶ func (s *AppHook) Levels() []logrus.Level type Logger ¶ type Logger struct { *logrus.Logger // contains filtered or unexported fields } func New ¶ func New(opts ...Option) *Logger type Option ¶ type Option func(*Logger) func WithLevel ¶ func WithLevel(level uint32) Option func WithLogPath ¶ func WithLogPath(path string) Option Source Files ¶ View all Source files log.go server_hook.go Click to show internal directories. Click to hide internal directories.