-
Notifications
You must be signed in to change notification settings - Fork 3
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
Introduce basic pre/post processor logic #96
Conversation
Need to fix test coverage, it has some weird artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but wait for another review
@@ -72,6 +72,10 @@ export type LogConfig = SharedConfig & { | |||
* @example ['error', 'important', 'success'] (only logs error, important, and success) | |||
*/ | |||
filter: RuntimeOrValue<string[] | undefined>; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSDocs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sowwy
@@ -72,6 +72,10 @@ export type LogConfig = SharedConfig & { | |||
* @example ['error', 'important', 'success'] (only logs error, important, and success) | |||
*/ | |||
filter: RuntimeOrValue<string[] | undefined>; | |||
|
|||
preProcessors?: ((input: LogMethodInput[], method: { name: M } & MethodConfig, logger: LogConfig<M>) => LogMethodInput[])[]; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSDocs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #93