Skip to content

Conversation

@nicoandrewss
Copy link

  • adds refactoring to use the Slack Web API

Comment on lines +22 to +28
// WithEnvironment is an option for creating a new SlackLogger.
// When used the given environment is added before the message.
func WithEnvironment(env string) Option {
return func(sl *SlackLogger) {
sl.environment = env
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Will man das hier vielleicht einfach zu einem "WithPrefix" oder so machen? 😄
Dann kann man auch evtl multiple prefixes machen

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