Skip to content

what about add property for event.categoryName ? #1

Open

Description

@padoauk

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: {},
},

Activity

  1. changed the title [-]what about channel to have event.categoryName ?[/-] [+]what about add property for event.categoryName ?[/+] on Feb 17, 2019
  2. lamweili commented on Jun 16, 2022

    @lamweili
    Contributor

    PRs are welcomed! 🤗

  3. linked a pull request that will close this issueFeature/add extra fields #30on Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions