Skip to content

Is it possible to redirect SDK internal logs to callback function or similar ? #482

Answered by bretambrose
kiranpradeep asked this question in Q&A
Discussion options

You must be logged in to vote

The node logger writes log lines to Process._rawDebug:

https://github.com/awslabs/aws-crt-nodejs/blob/main/source/logger.c#L257-L280

That connection cannot be changed, but it may be possible to monkey-patch Process._rawDebug to something else or configure node to route things differently.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kiranpradeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants