Hi,

how does one log through LS from a Java Adapter using the plain Slf4j API so that the log lines goes with LS's ones?

As far as I understood, Adapters don't run in a different classloader, so the share the SLF4J runtime. Thus just doing a:

Logger logger = LoggerFactory.getLogger(MyMetaAdapter.class);
logger.info("Blah blah");

would make Blah Blah appear in LS's Logback-handled log.

It's not so for me unfortunately. I'm trying with a very simple, empty adapter written for the purpose, just to eliminate obscure behaviours from other pieces of software.

What's the official way to log in adapters?

This is in LightStreamer 4.01.


Gabriele