Re: Logging problem

2019-04-11 Thread Lukasz Lenart
śr., 10 kwi 2019 o 11:20 Tamás Barta napisał(a): > > Hi, > > We use JBoss as AS where logging is based on Log4J version 1. I see that > Struts 2 uses Log4J version 2 and my problem is that how can I route Struts > logging messages to the Log4J inside JBoss. I guess I need a bridge-like > Log4J2 ap

Re: Logging not working

2010-10-06 Thread Mead Lai
If you want to record the ServerError, like ServletException, you can config the Tomcat Server logging, ref the document from Apache.org Regards, Mead On Wed, Oct 6, 2010 at 10:44 PM, Dave Newton wrote: > What do you have your log levels configured as? For struts, xwork, and > OGNL? > > Dave

Re: Logging not working

2010-10-06 Thread Dave Newton
What do you have your log levels configured as? For struts, xwork, and OGNL? Dave On Wed, Oct 6, 2010 at 10:39 AM, Darren Karstens wrote: > The tag worked, thanks that will come in handy. I would > still like to get errors reporting in the logs, any got any ideas? > > On Wed, Oct 6, 2010 at 2:3

Re: Logging not working

2010-10-06 Thread Darren Karstens
The tag worked, thanks that will come in handy. I would still like to get errors reporting in the logs, any got any ideas? On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai wrote: > try the tag > > on the page > > > Regards, > Mead > > > On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens > wrote: > >> Hi,

Re: Logging not working

2010-10-06 Thread Mead Lai
try the tag on the page Regards, Mead On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens wrote: > Hi, > I can't seem to get any errors to appear when struts goes wrong > (action trying to set/get an attribute that doesn't exist etc). I have > the commons-logging-1.1.jar file in my /WEB-INF/lib >

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
uts 2 going and have not yet removed things that we are not using. Thanks, Paul Zepernick -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:24 PM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart does the pkg exten

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
does the pkg extend the jasper pkg? are you really using all those s2 plugins?! (sent via mobile; too lazy to capitalize properly.) dave --- On Fri, 6/20/08, Paul Zepernick <[EMAIL PROTECTED]> wrote: > From: Paul Zepernick <[EMAIL PROTECTED]> > Subject: RE: Logging

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
jasper is removed, so I know the class file is ok. Thanks, Paul Zepernick -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 9:56 AM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart --- On Fri, 6/20/08, Paul

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
--- On Fri, 6/20/08, Paul Zepernick <[EMAIL PROTECTED]> wrote: > Yes, I turned on debug and there was a ton of information, > but no stack trace or anything else saying why the filter > failed to start. I do have all the Jasper dependencies in > now (that email is a couple down). Ah. Not sure wh

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
[mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 9:31 AM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart I thought I already answered that? You can also narrow down the packages that will produce DEBUG-level statements; although that might be a bit hit-or-miss at

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
wrote: > From: Paul Zepernick <[EMAIL PROTECTED]> > Subject: RE: Logging For SEVERE: Error filterStart > To: "'Struts Users Mailing List'" > Date: Friday, June 20, 2008, 9:27 AM > Another tidbit of information...The startup error only > happen when mapi

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
esult type? Is there any way to get the actual error that caused the filter not to start? Thanks, Paul From: Paul Zepernick [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 9:07 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Logging For SEV

RE: Logging For SEVERE: Error filterStart

2008-06-19 Thread Paul Zepernick
error or something so I can figure out exactly what is missing? Paul From: Paul Zepernick [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 4:23 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Logging For SEVERE: Error filterStart Thanks Dave. I

RE: Logging For SEVERE: Error filterStart

2008-06-18 Thread Paul Zepernick
Technology -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 4:19 PM To: Struts Users Mailing List Subject: Re: Logging For SEVERE: Error filterStart You *could* set the default log level to DEBUG, but stand back. My initial assumption, however, would

Re: Logging For SEVERE: Error filterStart

2008-06-18 Thread Dave Newton
You *could* set the default log level to DEBUG, but stand back. My initial assumption, however, would be that you're missing Jasper dependencies, as you say "the jar" and there's around a half-dozen, give or take. Dave --- On Wed, 6/18/08, Paul Zepernick <[EMAIL PROTECTED]> wrote: > From: Pa

Re: logging with Log4J

2007-08-28 Thread Laurie Harper
Ashish Kulkarni wrote: Hi Does anyone have an exmple of using log4j for logging struts messages, I have an web application where i use log4j for logging, i have a mapslog4j.xml file in WEB-INF folder and load this log file using DOMConfigurator in a servlet. This servlet is loaded before struts s

RE: Logging to db

2006-11-21 Thread Lance Semmens
It would be easy enough to do by writing a custom javax.servlet.Filter. You would map your Filter to "*.do" in web.xml. Alternatively you could configure a JDBC appender in log4j for "org.apache.struts.action.RequestProcessor" at level "debug" although you might find a bit too much junk is bein

RE: Logging to db

2006-11-21 Thread Gundersen, Richard
Log4j provides this functionality Look at the docs for these two classes org.apache.log4j.jdbcplus.JDBCLogger; org.apache.log4j.jdbcplus.JDBCSqlHandler; I've implemented it here, and it works great. Richard -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED

Re: Logging to db

2006-11-21 Thread Nuwan Chandrasoma
i think you can configure log4j do log messages to a DB, hope it will help you. - Original Message - From: "Søren Blidorf" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 21, 2006 1:19 PM Subject: Logging to db Hi. I what to log every user action on my application and save it in

RE: Logging in Struts

2006-11-17 Thread Thomas Joseph
Hi Cab, As far as my experience, use Logger using log4j and use static declaration. There should not be any problems for your application. I think you are not writing a library application, that will be shared by other applications running on your server. So go ahead with the efficient way! Th

Re: logging initialization order

2006-11-12 Thread Ed Griebel
On 11/10/06, Ping Yu <[EMAIL PROTECTED]> wrote: Nov 9, 2006 2:35:23 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive test.war log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). log4j:WARN Please initialize the

Re: logging initialization order

2006-11-10 Thread Chris Pratt
We have a similar situation. I use a the contextInitialized event of a javax.servlet.ServletContextListener to initialize our logging environment before Struts gets hold of it. (*Chris*) On 11/10/06, Ping Yu <[EMAIL PROTECTED]> wrote: Hi, people in the list, I still got problems in log4j w

Re: logging system initialization

2006-10-30 Thread Ed Griebel
...but note that unless you are dong something fancy, log4j doesn't need any separate initialization steps as long as the log4j config file is set up properly and in the classpath so log4j's static initializer can find it. One problem I have run into before is when there are two log4j.xml files i

Re: logging system initialization

2006-10-30 Thread Ping Yu
Ed, Right now commons-digester.jar is in the webapp's classpath, and so it is the jar file (management.jar) which includes my log file, but it still gets the log4j warning error message. log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig). lo

Re: logging system initialization

2006-10-30 Thread Chris Pratt
If you need to initialize anything before the rest of the system gets a hold of it (like logging), use a javax.servlet.ServletContextListener and process the contextInitialized() event. It gets called before anything else in the context gets initialized. (*Chris*) On 10/30/06, Ed Griebel <[EMAI

Re: logging system initialization

2006-10-30 Thread Ed Griebel
For a WAR file you are going to deploy: create a log4j.properties or a log4j.xml file and get it into your warfile under WEB-INF/classes. The actual process of doing this differs if you are using Maven, an IDE deployer (e.g. JDeveloper or WSAD), or Ant to generate and deploy a WAR. For a webapp r

Re: logging servlet to CATALINA.out

2004-12-05 Thread Yves Sy
Hi Jim, getDebug() was deprecated in 1.1 and totally removed in 1.2. You should use struts 1.1 jars if you still wish to use your existing code. -Yves- On Mon, 06 Dec 2004 03:21:25 +, Jim Douglas <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to log servlet messages but can't get t

Re: logging in Jelly tags

2004-10-12 Thread Nathan Coast
apologies, sent this to the wrong list, pls ignore Nathan Coast wrote: Hi, I have a couple of Jelly tag classes, what's the 'correct' way write log statements in tag classes. e.g. 1) info - information that is always logged to stdout 2) debug - info that is displayed during with -X cheers Nathan

Re: logging

2004-07-12 Thread Apurva Goswami
7:39 AM To: Struts Users Mailing List Subject: Re: logging Hi Ravi, > No ..no...its not an issue at all. > > Use it the way "Apurva" has mentioned. > > It works !! Yes, that would be one solution. I am providing another solution. It's just a matter of HOW. Whic

RE: logging

2004-07-12 Thread Apurva Goswami
ion=INFO log4j.category.MainMenu=INFO log4j.category.PaymentDueReport=ERROR . . -Original Message- From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 7:39 AM To: Struts Users Mailing List Subject: Re: logging

Re: logging

2004-07-12 Thread Shinobu Kawai
Hi Ravi, > No ..no...its not an issue at all. > > Use it the way "Apurva" has mentioned. > > It works !! Yes, that would be one solution. I am providing another solution. It's just a matter of HOW. Which solution to pick is up to Viral. As for me, the main reason to use commons-logging is t

RE: logging

2004-07-12 Thread Apurva Goswami
: RE: logging Hi Apurva, We are having a class level variable as you mentioned as below org.apache.log4j.Category cat = org.apache.log4j.Category.getInstance(ResResourceManager.class.getName() ); I think the difference will be in the log4j.appender.R.layout.ConversionPattern=%d, [%t], %-5p

RE: logging

2004-07-12 Thread Ravi Vedala
No ..no...its not an issue at all. Use it the way "Apurva" has mentioned. It works !! Regds R-a-v-i -Original Message- From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 11:53 AM To: Struts Users Mailing List Subject: Re: logging Hi Viral, &g

RE: logging

2004-07-12 Thread Viral_Thakkar
log4jconfig.properties file. Could you please let me know log4j.appender.R.layout.ConversionPattern value ..?? Thanks, Viral -Original Message- From: Apurva Goswami [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 11:50 AM To: 'Struts Users Mailing List' Subject: RE: lo

RE: logging

2004-07-12 Thread Viral_Thakkar
log4jconfig.properties file. Could you please let me know log4j.appender.R.layout.ConversionPattern value ..?? Thanks, Viral -Original Message- From: Apurva Goswami [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 11:50 AM To: 'Struts Users Mailing List' Subject: RE: lo

RE: logging

2004-07-12 Thread Viral_Thakkar
log4jconfig.properties file. Could you please let me know log4j.appender.R.layout.ConversionPattern value ..?? Thanks, Viral -Original Message- From: Apurva Goswami [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 11:50 AM To: 'Struts Users Mailing List' Subject: RE: lo

Re: logging

2004-07-11 Thread Shinobu Kawai
Hi Viral, > I am using commons-logging (using log4j) for logging.. > > We do following logging style... > > if (logger.isDebugEnabled()) > { > logger.debug("Method Name : + some Message"); > } > > Here can we get the method name using java reflection or some other way > so that no need to

RE: logging

2004-07-11 Thread Apurva Goswami
Try Put these lines on top of your class file // Log4j // Log4j with Try-Catch: try {...} catch (Exception e) { cat.error(e, e); } static org.apache.log4j.Category cat = org.apache.log4j.Category.getInstance("File Name".class.getName()); E.g. static org.apache.log4j.Category cat = org.apache.lo

Re: Logging (Log4J and Digester)

2004-05-04 Thread Johannes Wolfgang Woger
Weiss, Daniel (EXTERN: FOURTH) wrote: Hi folks, How could i config log4j to get no more DEBUG informations about the init method of the actionservlet? What will be the best way to config log4j? I would use chainsaw from log4j to see all Error Levels in a queue, but at present the debug msg are