Logging? #786
Unanswered
glennblock
asked this question in
Ideas
Logging?
#786
Replies: 1 comment 1 reply
-
Hi @glennblock ! I think in general we need 2 types of logging here:
meshLogging: debug
sources:
- ...
sources:
- name: Microsoft Graph
handler:
odata:
baseUrl: https://graph.microsoft.com/${GRAPH_VERSION}
batch: json
logLevel: debug
operationHeaders:
Authorization: Bearer {context.accessToken} And to be more specific, we need even granular control over what's being logged, so the signature of meshLogging:
default: info
Query.test: debug
Query.test2: debug |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, thanks for this great project. I have been playing with it the past few days and using the OData handler to talk to Microsoft Graph. Being able to use graphiql to issue queries against Graph is magical.
One of the things I ran into while doing this exploration is that some queries were failing. What I want to be able to do is see the requests that are being sent to Microsoft Graph so I can see what is causing the failure.
This gets me to the topic at hand, LOGGING.
I have noticed there appears to be no logging throughout Mesh. For diagnosing issues in production, dev etc, logging is essential, and there are lots of available solutions to leverage, they just need a design and to be plugged in.
Has any consideration been given to adding a logger to Mesh? It would be nice to have some default like Winston or Bunyan, even better would be to let me override the logger with my own. Once the logger is there, it would be some effort to figure out how to abstract and surface the logger throughout the code base and to make it avail to plugins. I'd argue the cost outweighs the benefits. I'd also argue against pure console logging, as using a logger gives you the ability to set verbosity levels which can easily be turned up or down through environment vars when needed, and they also support different outputs, formatting etc.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions