I'm using the Logback + SLF4J logging configuration described in the official documentation here.
Everything works fine with simple log messages like:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
...
private static final Logger logger = LoggerFactory.getLogger(MyClass.class);
...
logger.info("Hello world");
The problem appears when I try to log exceptions like this:
logger.error("Something went wrong:", ex);
I see only my description message in Stackdriver but not the stack trace from the provided exception.
What can be the problem here?
I'm using the Logback + SLF4J logging configuration described in the official documentation here.
Everything works fine with simple log messages like:
The problem appears when I try to log exceptions like this:
I see only my description message in Stackdriver but not the stack trace from the provided exception.
What can be the problem here?