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
How to output Logger.e to console when running junit test in android studio #26
Comments
Hi, let me check this issue. |
I too am curious how to log console output from junit test. Any update on this? |
This is something I'm working on but on a different level though. I'm trying to show the output log quite differently for unit tests. |
Well, silly me. One can just use |
I'll add a built-in LogAdapter to support System logs. |
With a custom val formatStrategy = PrettyFormatStrategy.newBuilder()
.logStrategy { priority, tag, message -> println(message) }
.build()
Logger.addLogAdapter(AndroidLogAdapter(formatStrategy)) |
Hi there,
The title is pretty obvious. I am be able to print log to console with
e.printStackTrace()
when running unit test in android studio butLogger.e(JsonUtils.class.getName(), jsonString, e)
.Thanks in advance!
The text was updated successfully, but these errors were encountered: