Ok it looks like th information is making across the queue. When i pull the message
and log it to a Rolling file, I get exactly what I want, however the same problem
occurs when i try to pull from the queue and log to the JDBC logger, havent checked
but it looks like the patter is not being applied again.
Is there a way to get the same to work for the JDBC logger as there is no locationInfo
property in the JDBCLogger?
here is my comeplete config
log4j.category.org.synchronoss.util.logging.test.servlet=debug,JMSAppender
log4j.category.org.synchronoss.util.logging.mdb=debug,RollingFile,JDBCAppender
#,SNMPTrapAppender
log4j.appender.JMSAppender=org.apache.log4j.net.JMSAppender
#log4j.appender.JMSAppender=org.synchronoss.util.logging.JMSAppender
log4j.appender.JMSAppender.InitialContextFactoryName=weblogic.jndi.WLInitialContextFactory
log4j.appender.JMSAppender.ProviderURL=t3://localhost:7001
log4j.appender.JMSAppender.TopicConnectionFactoryBindingName=LoggingConnectionFactory
log4j.appender.JMSAppender.TopicBindingName=LoggingTopic
log4j.appender.JMSAppender.UserName=system
log4j.appender.JMSAppender.password=security
log4j.appender.JMSAppender.locationInfo=true
log4j.appender.JMSAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.JMSAppender.layout.ConversionPattern=(%C:%M:%L) - %m%n
log4j.appender.RollingFile=org.apache.log4j.RollingFileAppender
log4j.appender.RollingFile.File=central.log
log4j.appender.RollingFile.MaxFileSize=500MB
log4j.appender.RollingFile.MaxBackupIndex=5
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p
(%C:%M:%L) - %m%n
log4j.appender.JDBCAppender=org.synchronoss.util.logging.JDBCAppender
# Using a commercial jdbc driver for ms slq server; use the URL of your driver instead
#log4j.appender.JDBCAppender.URL=dbc:oracle:thin:@pamdfsr2901.synchronoss.net:1521:dtxn
log4j.appender.JDBCAppender.DataSourceName=LoggingDataSource
#log4j.appender.JDBCAppender.user=awe
#log4j.appender.JDBCAppender.password=awe
#log4j.appender.JDBCAppender.sql=INSERT INTO LOGGER_LOG (log_level, class, method,
message) values ('%p', '%C', '%M', '%m')
#log4j.appender.JDBCAppender.sql=INSERT INTO LOGGER_LOG (log_time, log_level, class,
method, line_num, message) values \
#(TO_DATE('%d{dd/MM/yyyy kk:mm:ss}','DD/MM/YYYY HH24:MI:SS'), '%p', '%C', '%M', '$L',
'%m')
log4j.appender.JDBCAppender.sql=INSERT INTO LOGGER_LOG (log_time, log_level, message)
values \
(TO_DATE('%d{dd/MM/yyyy kk:mm:ss}','DD/MM/YYYY HH24:MI:SS'), '%p', '%m')
log4j.appender.JDBCAppender.layout=org.apache.log4j.PatternLayout
#log4j.appender.SNMPTrapAppender=org.apache.log4j.ext.SNMPTrapAppender
#log4j.appender.SNMPTrapAppender.ImplementationClassName=org.apache.log4j.ext.JoeSNMPTrapSender
#log4j.appender.SNMPTrapAppender.ManagementHost=10.7.45.73
#traps on 162
#log4j.appender.SNMPTrapAppender.ManagementHostTrapListenPort=162
#log4j.appender.SNMPTrapAppender.EnterpriseOID=1.3.6.1.4.1.24.0
#log4j.appender.SNMPTrapAppender.EnterpriseOID=1.3.6.1.4.1.140.625
#log4j.appender.SNMPTrapAppender.LocalIPAddress=127.0.0.1
#log4j.appender.SNMPTrapAppender.LocalTrapSendPort=162
#log4j.appender.SNMPTrapAppender.GenericTrapType=6
#log4j.appender.SNMPTrapAppender.SpecificTrapType=12345678
#log4j.appender.SNMPTrapAppender.ApplicationTrapOID=1.3.6.1.4.1.24.12.10.22.64
#log4j.appender.SNMPTrapAppender.ApplicationTrapOID=1.3.6.1.4.1.140.625.60
#log4j.appender.SNMPTrapAppender.CommunityString=public
#log4j.appender.SNMPTrapAppender.ForwardStackTraceWithTrap=true
#log4j.appender.SNMPTrapAppender.Threshold=DEBUG
#log4j.appender.SNMPTrapAppender.layout=org.apache.log4j.PatternLayout
#log4j.appender.SNMPTrapAppender.layout.ConversionPattern=%d,%p,[%t],[%c],%m%n
-----Original Message-----
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]