Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2011
    Location
    New York City
    Posts
    2

    Question Logback Caller Location Information

    I'm in the process of migrating our systems from LS3 to LS4. I don't want to chase my tail on this one, so I thought I'd ask here. When outputting CLI data in the logs (%C specifically), I'm getting the Logger information, not the caller information.

    Log4j would respond with com.snarf.MyClass. Logback seems to be responding w/ com.lightstreamer.logback.LogbackLogger every time.

    Do I have to implement the Logback libs directly (and thus a major upgrade)? Is there a new option in the lightstreamer_log_conf or lightstreamer_conf to get this working? Am I doing something wrong here, or is this a known issue? Thanks for any help everyone!

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    Are you referring to the Server log, the Adapters log, or both?
    It seems to me that you are referring to the Server's own log, because class LogbackLogger, though the name is not obfuscated, is not part of the public interface, so it's not supposed to be used by Adapter code.
    The Server now routes log calls through this class, so this is actually the caller. But, in general, you should assume that the caller of Server-originated log lines is private to Lightstreamer.

    If you port your Adapters to Logback, the Adapter's own log shold not be affected by this change. Anyway, consider that migrating the Adapters to Logback is not needed.
    We didn't even migrate our own sample Adapters, just to show that they can keep using log4j while the Server uses Logback. You can look at the implementation of most of our java Adapters.

  3. #3
    Member
    Join Date
    May 2011
    Location
    New York City
    Posts
    2
    You are absolutely correct. I was assuming those were my log messages, when in fact it was log messages from LS server itself. Thank you for confirming this.

    I later that day found a message in the stdout from the LS startup script that mentioned the loggers for my adapters weren't setup correctly.

 

 

Similar Threads

  1. Replies: 1
    Last Post: July 21st, 2011, 11:16 AM
  2. Replies: 1
    Last Post: March 25th, 2008, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:48 PM.