Re: [logback-user] ContextSelector and getLogger

2009-03-06 Thread Ceki Gulcu
Martin Burchard wrote: > Using this way, is it possible to have the Logger configuration also > on a per Thread basis? No, SiftingAppender only controls the appenders nested within it. It does not control the configuration of loggers. Reading through Chapter 9: Context Selectors I have seen

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
Thank you, I'll try to understand and implement that. Using this way, is it possible to have the Logger configuration also on a per Thread basis? I know this is also a little bit strange but, we have a lot of different processes running. Some do logging using the ALogAppender, some do logging us

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Ceki Gulcu
Looking at the getNLog() method reproduced below, it seems like discriminating appenders based on process name would be sufficient. private boolean getNLog() { if (nLog == null) { try { IProcess process = ProcessManager.getProcess(); logDB = process.getDB("", dbPath,

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
To give you an impression of the pain of a Domino developer, here is a basic agent. package de.pentos.test.agents; import lotus.domino.AgentBase; import lotus.domino.AgentContext; import lotus.domino.Base; import lotus.domino.Database; import lotus.domino.Document; import lotus.domino.NotesExcep

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
This one... But the assumption is that I use a Context Selector so only Log events reach my appender instance that belong to this appender instance. package de.pentos.domino.logging; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import lotus.domino.Database; imp

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Ceki Gulcu
By the way, what type of appender are you using? Is it a custom made appender for Domino? -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch ___ Logback-user mailing list Logback-user@qos

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Ceki Gulcu
See http://logback.qos.ch/manual/appenders.html#SiftingAppender which will work for all loggers, even those declared statically. You could either put values in MDC when your thread starts or develop your own "discriminator" class based on thread ids. A discriminator has to implement the ch.qo

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
t; Sent: Thursday, 5 March, 2009 14:26:41 GMT +00:00 GMT Britain, Ireland, > Portugal > Subject: [logback-user] ContextSelector and getLogger > > > Hello, > > I currently try to get SLF4J and Logback to work on IBM Lotus Domino > Server > 8.5. > It's working. >

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
Gulcu To: logback users list Date: 05.03.2009 15:32 Subject: Re: [logback-user] ContextSelector and getLogger Sent by: logback-user-boun...@qos.ch Hello Martin, Could you please describe your use case in your terms without assuming the use of a ContextSelector? Martin Burchard wrote: > Hello,

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Robert Elliot
gging statements would be handled as well. - Original Message - From: "Martin Burchard" To: logback-user@qos.ch Sent: Thursday, 5 March, 2009 14:26:41 GMT +00:00 GMT Britain, Ireland, Portugal Subject: [logback-user] ContextSelector and getLogger Hello, I currently try to get SL

Re: [logback-user] ContextSelector and getLogger

2009-03-05 Thread Ceki Gulcu
Hello Martin, Could you please describe your use case in your terms without assuming the use of a ContextSelector? Martin Burchard wrote: Hello, I currently try to get SLF4J and Logback to work on IBM Lotus Domino Server 8.5. It's working. We need to do logging an a per Thread basis because

[logback-user] ContextSelector and getLogger

2009-03-05 Thread Martin Burchard
Hello, I currently try to get SLF4J and Logback to work on IBM Lotus Domino Server 8.5. It's working. We need to do logging an a per Thread basis because we log into a Domino database. The Java object of a Domino database is based on a session object, and that can not exist over more then one thr