Skip to content

Conversation

@csimplestring
Copy link

Add event subscribers for logrotate sink.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we went with the simple interface, we might as well make it even easier by ditching the interface in favour of a function type.

How about this?

func (l *Logrotate) OnRotate(fn func(string) error) {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants