I raised an issue at my employer concerning our gigantic heaps of testing logs. I raised the issue because I was spending well over a minute to find the relevant logs and stack-trace.
I stated we should change the logging level of tests to either warning or error. Not debug or info which they currently are.
Two of my colleagues were adamant on using the debugging log level. They stated that it is possible the failure originated earlier in the code and you'd need information about that specific part of code.
I said those logs were completely irrelevant because you want to see errors when testing. Not to mention that you have a reproducible situation at the push of a button and you don't need the debug logs at all. You need debug logs in production to reproduce a situation, not for a test.
I don't want to see entire debug logs of successful tests. I want to see the logs of failing tests and errors. Personally I truly cannot fathom why you'd log entire queries during your tests when you can just check for failing tests and use a debugger locally to find the cause.
Base on the above, I would like to know what the proper logging level is for tests.