-
Notifications
You must be signed in to change notification settings - Fork 518
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
Mute log record emission through Environment Variables #175
Comments
marcellodesales
added a commit
to marcellodesales/node-bunyan
that referenced
this issue
Oct 21, 2014
This commit adds the function that initially fixes trentm#175 by disabling the record being emitted. Requirements are described in the issue trentm#175. * modified: lib/bunyan.js - Adding a helper method to disable objects by properties * new file: test/log-env-disabled.test.js - Adding the disable test case by setting the environment var before loading the record.
marcellodesales
added a commit
to marcellodesales/node-bunyan
that referenced
this issue
Oct 21, 2014
…ect.properties notation This will exercise the case of references using the dot notation for the fix trentm#175. * modified: test/log-env-disabled.test.js - Adding a new env variable - Adding the test case using the object.
marcellodesales
changed the title
Disable logging depending on record's property value through Environment Variables
Mute log record emission through Environment Variables
Oct 21, 2014
Just noticed that the current version of the pull request may interfere with matching records from any app. I'm thinking I can add a prefix for the "name" of used for the record.
Where:
That way, we can restrict the value that is "muted". |
trentm
added
needslabels
needstriage
Type-Question
Component-Lib
and removed
needslabels
labels
Jan 23, 2016
trentm
added a commit
that referenced
this issue
Feb 3, 2016
Thanks for the issue. See my comments on #176. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
I was looking for a way to disable a given record to be emitted depending on its value. Is this possible???
My requirement is as follows:
Component A
Component B
Components A and B have their own logging settings. Considering Component A is a shared library, I want to be able to disable records to be logged from Component B, depending on the properties of the logs from Component A, say, "component".
I'm thinking about something like this... Given the record:
I want to be able to remove disable the logging specifically from this using environment variables on Component B like the one below:
thanks!
Marcello
The text was updated successfully, but these errors were encountered: