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

Support custom timestamp, level, msg key names. #4

Closed
dpc opened this issue Jun 22, 2016 · 2 comments
Closed

Support custom timestamp, level, msg key names. #4

dpc opened this issue Jun 22, 2016 · 2 comments

Comments

@dpc
Copy link
Collaborator

dpc commented Jun 22, 2016

Timestamp could be really OwnedKeyValue with the value being a closure, with a possibility of an user adding it's own. The problem it's evaluation would happen a bit later (important for async drain).

Level & msg are kind of special, but maybe something similiar could be done for them.

@dpc dpc changed the title Custom timestamp, level, msg key names. Support custom timestamp, level, msg key names. Jun 22, 2016
@dpc
Copy link
Collaborator Author

dpc commented Jun 22, 2016

Maybe support for closures Fn(&RecordInfo) -> Serialize would fix all of these and some part of #8. This way no special handling of timestamp, level, msg in the drains is required and drain or the user can register any custom closures under any custom name.

@dpc
Copy link
Collaborator Author

dpc commented Jul 12, 2016

Done.

@dpc dpc closed this as completed Jul 12, 2016
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

No branches or pull requests

1 participant