-
Notifications
You must be signed in to change notification settings - Fork 17
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
Logging configuration #116
Comments
You can have a look at |
Regarding the |
So the way that I am setting the level works for most things inside cruddl, everything except for that one message that is logged inside ArangoDBAdapter. I believe it works because I am configuring the default logging provider that is returned whenever I can't pass an instance to loggingProvider because the instances don't have the constructor or getLogger() function that the interface expects. I'll keep looking in the log4js docs, but their minimalist configuration and usage just looks like this:
|
Okay, I found the more appropriate way to configure the default logger, but I'm still getting the logging from ArangoDBAdapter. Here is my new code snippet:
|
Hm that sounds strange. Is it just this |
Yes, it is only that one message I'm getting. I was wondering if maybe the fact that the adapter seems to try to set up its own logger was preventing the one I was passing in from being used. |
Yes, but you are not passing a logger but a |
Could you see if you can replicate the behavior? |
What is the right way to handle configuration of the logger?
Based on notes in the source code, I tried bringing in log4js as a dependency and then changing the log level like this:
But even with that, I still get a log message from the ArangoDBAdapter:
ArangoDBAdapter: Executing AQL: @v_result1 = execute(
Is it right for me to be bringing in log4js as a dependency? it doesn't look like the built-in ConsoleLoggerProvider is exported, nor is it actually configurable, so I'm thinking that part is right.
The text was updated successfully, but these errors were encountered: