Add option to specify key in TimeStamper processor #51
Conversation
structlog/processors.py
Outdated
@@ -207,36 +207,37 @@ class TimeStamper(object): | |||
<http://en.wikipedia.org/wiki/ISO_8601>`_, or `None` for a `UNIX | |||
timestamp <http://en.wikipedia.org/wiki/Unix_time>`_. | |||
:param bool utc: Whether timestamp should be in UTC or local time. | |||
:param str key: Property name stored in `event_dict`. |
hynek
Mar 14, 2015
Owner
I don’t think ”Property” is the right term here. Maybe something like “Target key in event_dict
for added timestamps.”?
I don’t think ”Property” is the right term here. Maybe something like “Target key in event_dict
for added timestamps.”?
Please:
Thanks! |
Thanks! I was about to complain about |
hynek
added a commit
that referenced
this pull request
Mar 16, 2015
Add option to specify key in TimeStamper processor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
In my environment, the logging standard is to store the human-readable timestamp in a
'time'
entry :)