replacer functionality #69
Unanswered
jostendorf
asked this question in
Q&A
Replies: 1 comment
-
You can read more about the replacer here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are there any examples of how somebody might use the replacer functionality? We have extracted the logger into a separate typescript file where we are injecting some metadata on every call. Wondering how I might globally use the replacer functionality to replace PII data.
logger.ts:
export log = new LambdaLog({
dynamicMeta: () => {
return {
parameter: "This is fun"
}
}
});
usage:
import { log } from 'logger';
log.info('This is a message');
Beta Was this translation helpful? Give feedback.
All reactions