Skip to content

Conversation

adrianshum
Copy link

  • adding message() in event builder, to allow message to be provided before arguments
  • adding arg() as alias of addArgument()
  • some typo fixes

- adding message() in event builder, to allow message to be provided before arguments
- adding arg() as alias of addArgument()
- some typo fixes

Signed-off-by: Adrian Shum <[email protected]>
@adrianshum adrianshum force-pushed the feature/SLF4J-256_FluentApi branch from 189cc6e to ac3f21a Compare December 19, 2021 02:51
@ceki
Copy link
Member

ceki commented Dec 27, 2021

@adrianshum Thank you for this PR.

The log() method with no arguments adds flexibility to the API. However, I am afraid that users will forget to call log() after populating the event. That is the reasons it was not added in the first place. (I forgot about this reasoning until recently. Sorry about that.)

@pedrolamarao
Copy link

@adrianshum Thank you for this PR.

The log() method with no arguments adds flexibility to the API. However, I am afraid that users will forget to call log() after populating the event. That is the reasons it was not added in the first place. (I forgot about this reasoning until recently. Sorry about that.)

If static analysis was provided to warn users of incorrect usage, would you consider this to have enough usability?

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