Is it possible to redirect SDK internal logs to callback function or similar ? #482
Answered
by
bretambrose
kiranpradeep
asked this question in
Q&A
-
Currently, SDK internal logs are written to stderr. So we use |
Beta Was this translation helpful? Give feedback.
Answered by
bretambrose
Mar 18, 2024
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kiranpradeep
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
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.