How to change log level (logger) during test?

bengt cean.ebengt@REDACTED
Sun Nov 29 16:23:14 CET 2020


Greetings,

While running Common Test suites I get too many log messages (from info level). What should I do to change the log level?
Erlang OTP 23, logger. No log config, that I set.

I have tried:
logger:set_primary_config( level, warning ) in init_per_suite/1. It returns ok, but info log continue.
Also tried set_module_level/2. Same result.


Best Wishes,
bengt


More information about the erlang-questions mailing list