-
July 21st, 2011, 10:16 AM
#1
In fact, when we moved to Logback for the Server's own log, we decided to keep log4j on the existing example adapters.
This reduced the overall changes and reduced the coupling between the Server and the examples; note that the logging libraries included are visible globally and that the in-process java Adapters are not protected in their own ClassLoader, hence, the logging libraries can be accessed by the Adapters; however, the logging system was not meant to be part of the java Adapter interface.
When the Adapters were able to share the logging system with the Server, there were no initialization issues.
On the other hand, if the Adapters only share the logging system among themselves, we have to ensure that the initialization is performed in the correct sequence, as the Adapters are all initialized in parallel.
By replicating the log4j initialization (as done in init(), in ChatDataAdapter.java) in all Adapters, we have never noticed issues. Actually, our log configuration files are very simple; we just ensured that they would define the same appenders in the same way and that they would all define different loggers.
Is it possible that you define the same appender in different ways on different files?
Similar Threads
-
By odeheurles in forum Adapter SDKs
Replies: 6
Last Post: January 26th, 2015, 09:50 AM
-
By vnipt in forum General
Replies: 3
Last Post: November 14th, 2011, 09:33 AM
-
By ggalante in forum Adapter SDKs
Replies: 2
Last Post: August 29th, 2011, 06:39 PM
-
By rd2008 in forum Client SDKs
Replies: 2
Last Post: January 7th, 2009, 02:28 PM
-
By CitiMan in forum Adapter SDKs
Replies: 4
Last Post: November 21st, 2008, 05:24 PM
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 08:44 PM.
Bookmarks