Re: Newbie question...

2010-04-14 Thread Scott Deboy
1. Chainsaw can process regular text log files by via LogFilePatternReceiver - see the Welcome tab/View example receiver configuration. Copy that example and remove all plugins except the logfilepatternreceiver entry, modifying the parameters for that entry to match your log file. See the LogFile

Newbie question...

2010-04-14 Thread Jimenez Coelho, Juan
Can I use Chainsaw to display all messages that are related to a specific event (effectively correlation). My constraints are: + The log file is not in XML format, but plain text formatted with Log4J layout + There is nothing in place to correlate lines, hence I would need to apply a large set

RE: logging to database - newbie question.

2007-11-26 Thread Scott Deboy
ubject: Re: logging to database - newbie question. See http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jdbc/JDBCAppender.html Jake srinivas ramgopal wrote: > > Hi all > > I just noticed that log4j's dbappender is part of the > http://logging.apache.org/log4j/1

Re: logging to database - newbie question.

2007-11-26 Thread Jacob Kjome
See http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jdbc/JDBCAppender.html Jake srinivas ramgopal wrote: Hi all I just noticed that log4j's dbappender is part of the http://logging.apache.org/log4j/1.3 and this project seem to be abandoned??? If so, I am better of sticking to o

Re: logging to database - newbie question.

2007-11-26 Thread srinivas ramgopal
know. Thanks in advance for your input and time. -- View this message in context: http://www.nabble.com/logging-to-database---newbie-question.-tf4878715.html#a13962019 Sent from the Log4j - Users mailing list archive at Nabble.com. ---

logging to database - newbie question.

2007-11-26 Thread srinivas ramgopal
s and examples.at the earliest is higly appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/logging-to-database---newbie-question.-tf4878715.html#a13961477 Sent from the Log4j - Users mailing list archive at Nabbl

RE: newbie question

2006-03-20 Thread Gunter, Tony
Okay, against the advice of you guys, I set up two root hierarchies. One hierarchy is for my actual logging, and the other hierarchy is for my business events... this is to prevent some numbnuts from changing the hierarchy threshold and accidentally turning off the business event reporting. I am

Re: newbie question

2006-03-17 Thread Curt Arnold
On Mar 17, 2006, at 8:46 AM, Gunter, Tony wrote: If somebody wanted to turn off all diagnostic logging (and they had access rights to the logging configuration file), they would set the level of the root logger to OFF which would disable all diagnostic logging. If a level had been set for

RE: newbie question

2006-03-17 Thread Gunter, Tony
ey could potentially be used for reporting, billing, etc. It would seem safest to have a separate business properties file loaded with a configurator to eliminate this possibility. Or maybe I'm making this more complicated than it should be. > Since this is phrased as "newbie question&

Re: newbie question

2006-03-17 Thread Curt Arnold
level from root and so would not be affected by the change to the root level. Since this is phrased as "newbie question", I thought it would be better to suggest a common and widely used approach (one hierarchy with a branch for non-diagnostic logging) and discourage using a compl

RE: newbie question

2006-03-17 Thread Gunter, Tony
Might this also have unintended consequences, say if someone wanted to turn off all diagnostic logging on production? Doesn't log4j provide the ability to execute maximum logging levels (including OFF) across the entire hierarchy? > It would be much simpler to only have one hierarchy and one >

Re: newbie question

2006-03-16 Thread Curt Arnold
On Mar 16, 2006, at 5:02 PM, Gunter, Tony wrote: Whoah! I think I understand. You create two hierarchies, load each one with its own property file using a configurator, and then you have two root loggers, correct? It would be much simpler to only have one hierarchy and one configurat

Re: newbie question

2006-03-16 Thread James Stauffer
That is possible but you can have them share the same root also. I don't use the properties format so if I tried to give you an example it would probably have errors. On 3/16/06, Gunter, Tony <[EMAIL PROTECTED]> wrote: > > Whoah! I think I understand. You create two hierarchies, load each one >

RE: newbie question

2006-03-16 Thread Gunter, Tony
Whoah! I think I understand. You create two hierarchies, load each one with its own property file using a configurator, and then you have two root loggers, correct? > Do you have any examples where two logging hierarchies are defined in > the properties file? **

RE: newbie question

2006-03-16 Thread Gunter, Tony
Do you have any examples where two logging hierarchies are defined in the properties file? Thanks! -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 1:09 PM To: Log4J Users List Subject: Re: newbie question Create 2 logger higherarchies

Re: newbie question

2006-03-16 Thread James Stauffer
Create 2 logger higherarchies. One normal and one for business events. Then it should be easy to split them into two separate files. On 3/16/06, Gunter, Tony <[EMAIL PROTECTED]> wrote: > > I want to use log4j in my application to write to two separate log > files, one OHCRAP log file for techies

newbie question

2006-03-16 Thread Gunter, Tony
I want to use log4j in my application to write to two separate log files, one OHCRAP log file for techies to dig through with warnings, errors, and debugging, and one informational log file that will log business events for possible reporting use at a later date. I purchased a copy of the log4j

Re: Silly log4j newbie question

2006-01-19 Thread Clemens Eisserer
Hi Javier, thanks a lot, this solved the problem. I thought I missed some more fundamental but as always the small things cause the problems I get stuck ;) Thanks a lot, lg Clemens btw. Log4J is thousand times cooler than the hand-rolled logging I used before. Thanks for it! > you missed "logge

Re: Silly log4j newbie question

2006-01-19 Thread Javier Gonzalez
you missed "logger" between "log4j" and your logger. log4j.logger.PalmeLogger= debug, stdout, std_logfile cheers, Javier On 1/19/06, Clemens Eisserer <[EMAIL PROTECTED]> wrote: > Hi there, > > I know for a professional this must be pure newbie-style question, > however I read the log4j tutoria

Silly log4j newbie question

2006-01-19 Thread Clemens Eisserer
Hi there, I know for a professional this must be pure newbie-style question, however I read the log4j tutorial and can't find the appropriate answer :-( In code I request a logger like this: Logger palmeLogger = Logger.getLogger("PalmeLogger"); In the config-file I configure it like this: log4j

Re: Newbie Question

2005-06-05 Thread Jacob Kjome
You have everything right except for the ".*". You are mixing Log4j concepts with Java import concepts. Try... log4j.logger.net.sf.ehcache=ERROR, stdout. Jake At 11:54 PM 6/5/2005 -0400, you wrote: >Hi > >I would like to know how do I set the logger for all classes inside a >package. I wo

Re: Newbie Question

2005-06-05 Thread Paul Smith
remove the '.*' and you're done. all child packages and classes (it's all really Strings rather than explicit classes/packages) will inherit this setting. cheers, Paul Smith On 06/06/2005, at 1:54 PM, Néstor Boscán wrote: Hi I would like to know how do I set the logger for all classes in

Newbie Question

2005-06-05 Thread Néstor Boscán
Hi I would like to know how do I set the logger for all classes inside a package. I would like to do something like this: log4j.logger.net.sf.ehcache.* = ERROR, stdout. Regards, Néstor Boscán

RE: Newbie question: logging for default package

2005-04-08 Thread Jacob Kjome
ying a class in the default > package. > > Cheers, > Mick > > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: 08 April 2005 16:04 > To: Log4J Users List > Subject: Re: Newbie question: logging for default package > > > > Yo

RE: Newbie question: logging for default package

2005-04-08 Thread Sear Mick (Products O2)
ch I guess would work, but I can't find examples of specifying a class in the default package. Cheers, Mick -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 08 April 2005 16:04 To: Log4J Users List Subject: Re: Newbie question: logging for default package You need

Re: Newbie question: logging for default package

2005-04-08 Thread Jacob Kjome
You need to tell us how you are specifying your logger name in code. Are you doing something like? private static final Logger logger = Logger.getLogger(MyClass.class.getName()); If so, and since your class is in the default package, I would expect the logger name to be "MyClass". As such,

Newbie question: logging for default package

2005-04-08 Thread Sear Mick (Products O2)
I have a class that I want to run on the command-line under cron. I've got a log4j properties file in the same directory that contains 2 loggers: a root logger and a logger that I've defined as log4j.logger.myClassName=DEBUG, A1 log4j.appender.A1=lheutils.MySQLAppender log4j.appender.A1.sql=INSE

newbie question about using log4j along with other 3p products

2004-10-13 Thread Chris Garcia
Our IDE (JBoss) uses log4j, and a customer's API also uses log4j (1.2.8), so we're planning to use it for our custom code that will be mixing these both. The customer's API has a server side log4j config file. Anything we should watch for? Can we define a new log4j client side config file without

JMSAppender newbie question, again

2004-06-15 Thread Pedro Tavares da Silva
Hi, can anyone give me a clue on what i am doing wrong? I'm using log4j 1.2.8 and jboss-3.2.3... i am configuring the client DOMConfigurator.configure("/home/pns/tmp/workspace/MyEjbClient/jboss.xml"); witch configures log4j... then i get this: log4j: Threshold ="null". log4j: Level value for root

Log4j, JMSAppender e JBOSS newbie question

2004-06-09 Thread Pedro Nuno Tavares da Silva
Hi, i am new using log4j and JBoss, and i'm trying to use the JMSAppender, i have seen an similar question/answer here, but the answer did not help me much. I am using log4j 1.2.8 and jboss 3.2.3, log4j is in debug mode. There's a j2ee client who logs to JMS and a Message Bean who will receive

RE: Newbie question on DailyRollingFileAppender

2004-05-18 Thread Alan Brown
the method you're interested in altering. BTW - I'm not sure if 1.3 is set up to do this easier. alan -Original Message- From: Larry Cryderman [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:32 AM To: '[EMAIL PROTECTED]' Subject: Newbie question on DailyRolli

Newbie question on DailyRollingFileAppender

2004-05-18 Thread Larry Cryderman
Hi, Can I set up log4j to roll files at 3:00am every day? How about 2:30am ? Any examples greatly appreciated, I've tried a ton with no luck. Thanks, Larry

RE: Another Newbie Question

2004-04-01 Thread Shapira, Yoav
Hi, >- When using a daily file roll, is the file overwritten >every night - or is it timestamped and a new file is >created? Or will I have to script this myself? It's timestamped and a new one created, e.g. myLog becomes myLog.2004-03-31 and a new file called myLog is created. Yoav Shapira

Another Newbie Question

2004-04-01 Thread Jeff Longland
Hi all, log4j is currently running on a few servers here, and I'd like to get my logs more organized. As it stands, I'm using FileAppenders that roll at 5mb with a backup of 20 files - a tad messy at times. I'm going to switch to a daily roll, but I'd also like to try using SocketAppenders. I h