Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what about add property for event.categoryName ? #1

Open
padoauk opened this issue Feb 17, 2019 · 1 comment
Open

what about add property for event.categoryName ? #1

padoauk opened this issue Feb 17, 2019 · 1 comment

Comments

@padoauk
Copy link

padoauk commented Feb 17, 2019

Hi.

In the current version, although event has property 'categoryName', which is defined the parameter of getLogger(), there's no property in output data that is defined by the categoryName. What about to add the following line in the returned function of function logstashHTTPAppender(config) ?

{
  message: format(event.data),
  context: event.context,
  level: event.level.level / 100,
  level_name: event.level.levelStr,
  category_name: event.categoryName, // +
  channel: config.logChannel,
  datetime: (new Date(event.startTime)).toISOString(),
  extra: {},
},
@padoauk padoauk changed the title what about channel to have event.categoryName ? what about add property for event.categoryName ? Feb 17, 2019
@lamweili
Copy link
Contributor

PRs are welcomed! 🤗

@lamweili lamweili linked a pull request Jul 22, 2022 that will close this issue
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 a pull request may close this issue.

2 participants