Is there a way to access (`println`) console outpu...
# compose
d
Is there a way to access (
println
) console output from code executing in the context of a Compose Interactive Preview?
j
System.setOut, maybe?
Or are you saying you just want to see those logs somewhere and not necessarily capture them
d
The second one ideally, though I suppose I could pipe it to a file with setOut
j
Maybe in idea.log? I have no idea where that code is actually running in terms of processes and such
c
It’s not possible today to log from from Interactive Preview. But you can deploy a specific Preview to device, which then logging should work as expected
m
many of my previews start with these two lines:
Copy code
Timber.uprootAll()
Timber.plant(Timber.DebugTree())
And then as @Chris Sinco [G] said, you can just deploy to the emulator, and put timber logging statements in there.
191 Views