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

Extract a transformer method for finer control of the formats and fields sent to logstash #46

Merged
merged 2 commits into from
Oct 29, 2017

Conversation

JeffAtDeere
Copy link
Contributor

@JeffAtDeere JeffAtDeere commented Oct 13, 2017

Introduced a new option transformer as a function so that a client can exactly control what is sent to logstash.

@JeffAtDeere
Copy link
Contributor Author

@djMax the build failed in a dep due to node 0.12 and the use of const. I assume a master build would fail as well so I hope you consider merging this.

@@ -50,6 +50,7 @@ var Logstash = exports.Logstash = function (options) {
this.strip_colors = options.strip_colors || false;
this.label = options.label || this.node_name;
this.meta_defaults = options.meta || {};
this.transformer = options.transformer || defaultTransformer;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this is super nitpicky, but could you change the name of this to "transform"? Seems more in line with naming conventions I've seen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@djMax djMax merged commit 26323b6 into jaakkos:master Oct 29, 2017
@JeffAtDeere JeffAtDeere deleted the extract_transformer branch October 30, 2017 03:03
@JeffAtDeere
Copy link
Contributor Author

JeffAtDeere commented Nov 15, 2017

Any news of a release or is this blocked by #47 ?

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.

2 participants