-
June 21st, 2013, 10:25 PM
#1
LS 4.01: how to log through SLF4j
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 11:11 AM.
Bookmarks