Skip to content

Fix specs kwargs - #192

Open
skunkworker wants to merge 114 commits into
shadabahmed:mainfrom
mxenabled:fix_specs_kwargs
Open

Fix specs kwargs#192
skunkworker wants to merge 114 commits into
shadabahmed:mainfrom
mxenabled:fix_specs_kwargs

Conversation

@skunkworker

Copy link
Copy Markdown

No description provided.

quixoten added 30 commits March 3, 2014 15:41
This puts all of the rails integration logic into the railtie. Some of
the defaults were also changed. Parameters are logged by default, but in
JSON format. Standard logging is no longer silenced by default.
The internal params were not getting cleared from the final params hash
Rather than spin through all the log subscribers and figure out how to
unsubscribe them, we just include a module that re-defines the
subscribers logger method to point to a silent logger.
Simply including a module does not override methods already defined on
the class.
goutkannan and others added 30 commits January 26, 2022 11:09
Config value named metadata to be part of payload
If you set LogStasher.metadata, it will be appended to the message with
a :metadata field before calling #to_json.

You can also supply a :as_logstash_event if you wish for your payload to
be wrapped in a LogStash::Event class that adds version and timestamp
fields ready to be consumed by logstash/ elasticsearch.

With this, we were able to clean up the log_subscriber code.
Add a new #log_as_json method to make it easy to log json messages
logstasher: add option to not touch log file.
Merge metadata into LogStash::Event types
added load_from_config to make configuration simpler
Add optional dry-validation contract support
Formats the dry-validation payload with symbolized keys and .to_json
values. Also corrects .deep_merge! call to .merge!
Allows for type coercion via the dry-validation contract if defined.
Add support for type coercion
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.

8 participants