logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aristotle Allen" <aristotle.al...@synchronoss.com>
Subject RE: null pattern with JMSAppender
Date Wed, 14 Apr 2004 18:20:24 GMT
I figured this one out, I was using the wrong sql statement.

Thanks anyway!


-----Original Message-----
From:	Ceki Gülcü [mailto:ceki@qos.ch]
Sent:	Wed 4/14/2004 1:20 PM
To:	Log4J Users List
Cc:	
Subject:	RE: null pattern with JMSAppender

At 07:01 PM 4/14/2004, Aristotle Allen wrote:
>Ceki,
>
>First off, thanks for the quick reply.
>
>I'm not sure what yo mean to set the "LocationInfo"  can you exmpain in 
>more detail?  Do i need an additional property?  OR should I extend the 
>JMS appender nd modify it?

The LocationInfo property is part of the JMSAppender. Just set it to true.

See:

http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/JMSAppender.html

or more succinctly

http://tinyurl.com/2m22d

I hope this helps,


>Thanks again
>-
>Ari
>
>
>-----Original Message-----
>From:   Ceki Gülcü [mailto:noreply@qos.ch]
>Sent:   Wed 4/14/2004 10:21 AM
>To:     Log4J Users List
>Cc:
>Subject:        Re: null pattern with JMSAppender
>
>Aristotle,
>
>JMSAppender does not need a layout. To achieve what you have in mind,
>simply set the LocationInfo property of the JMSAppender.
>
>HTH,
>
>At 03:06 PM 4/14/2004, Aristotle B. Allen wrote:
> >I'm trying to use the JMSAppender for distributed logging, however I
> >need classname, method, and line_num in my message, because the remote
> >system where the JMSappender re-logs the message does not appear to be
> >to have the objects necessary to get that information.
> >
> >I have attempted to use a layout, but it is not being applied, in fact
> >the Layout for the LoggingEvent is null?
> >
> >How can I force the JMSAppender to apply this pattern before it creates
> >the ObjectMessage and puts it on my topic?
> >
> >Here is my config
> >
> >log4j.appender.JMSAppender=org.apache.log4j.net.JMSAppender
> >log4j.appender.JMSAppender.InitialContextFactoryName=weblogic.jndi.WLInit 
> ialContextFactory
> >log4j.appender.JMSAppender.ProviderURL=t3://localhost:7001
> >log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=LoggingConne 
> ctionFactory
> >log4j.appender.JMSAppender.TopicBindingName=LoggingTopic
> >log4j.appender.JMSAppender.UserName=system
> >log4j.appender.JMSAppender.password=security
> >log4j.appender.JMSAppender.layout=org.apache.log4j.PatternLayout
> >log4j.appender.JMSAppender.layout.ConversionPattern=(%C:%M:%L) - %m%n
> >
> >--
> >Aristotle B. Allen
> >Sr. Engineer
> >Synchronoss Technologies Inc.
> >610.814.5598
>
>Ceki Gülcü
>
>       For log4j documentation consider "The complete log4j manual"
>       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org






Mime
View raw message