the error
message when i get it but i think by default, log4j (or any jar) cannot
delete files on the OS.
Cheers
R
James Stauffer wrote:
I have not had any problems with this. Please give more details on
your environment. Are you use the user that runs the app server has
the correct OS pe
Hi,
I hope someone can help. It seems that log4j is not allowed to do
certain things with the default java security permissions that come with
my app server.
Can someone show me what they typically add to give log4j permissions?
I'm having problems with deleting files using the rollingfileap
Hi,
currently i have been using log4j by declaring a logger per class. This
has worked well overall when developing and the granularity of debugging
it offers is useful.
However, I would like to introduce NDC into the mix and am not sure how
to do this.
Would i have to let go of the 'one l
erent category to
the other logger (com?)
On 3/17/06, Rakesh Patel <[EMAIL PROTECTED]> wrote:
so i have another logger but how do i control loggers output to a
specific appender?
cheers
Rakesh
James Stauffer wrote:
Do it like the following. Then it will be easy to send the audit logs
);
final static Logger _auditor =
Logger.getLogger("audit."ReferenceDataDaoImpl.class.getName());
On 3/17/06, Rakesh Patel <[EMAIL PROTECTED]> wrote:
Hi,
i have a requirement to audit events to a database table. I thought of
using the log4j JdbcAppender to do this but the issue i
Hi,
i have a requirement to audit events to a database table. I thought of
using the log4j JdbcAppender to do this but the issue i have is there's
auditing and there's debugging.
For example,
logger.debug("Value of variable is now:{}",aVariable); // this is not
needed for auditing
logger.de
myUserName = aUserName;
}
}
-Original Message-
From: Rakesh Patel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 1:44 PM
To: Log4J Users List
Subject: Re: Using the same tables for log4j with JDBC appender and
Log4PLSQL
Hi Heri,
I would be vey interested to know ho
Hi Heri,
I would be vey interested to know how you configured all that. Also, is
there no performance hit with all that logging from java to the db?
Rakesh
Bender Heri wrote:
I dont use log4plsql, but I have a System which logs by a JDBC-Appender to a
Oracle-Table, and the stored procedure
Hi,
does anyone know what permissions log4j needs to be able to do
RollingFileAppender?
Our app server is quite particular about permissions and the general
approach ahs been to grant the whole app full priviligies.
I'd like to give the log4j just enough permissions.
Thanks
Rakesh
--
I am using the LogFilePatternReceiver with the tailing option = true. After the
initial loading of the file with the log file data, I did not see the
subsequent updates in the logfile picked up by chainsaw until I "cd" to the log
file directory and did an "ls" for the logfiles in question. Has a
The following is my log4j.properties file. It basically logs to a
RollingFileAppender and to a SocketHubAppender. I have the following issues,
maybe some of the experts can clarify.
1. Is it true that the A3 appender will actually "see" INFO messages and will
be evaluated by the A3 before they
i was wondering if chainsaw can be used to view log4j files? i know there is
something call the LogFilePatternReceiver, which - according to the
documentation parses and tails a log file. Will the LogFilePatternReceiver pull
in the entire file and then add to the display for each incoming entry
Hi,
I have a setup of log4j working quite well. I wanted to know if it was
possible to selectively change logger levels.
I know there is a servlet in cvs to do this. Is there any other way?
Perhaps Chainsaw?
If not, I'm thinking of writing a JSP based one - the servlet in cvs is
quite old.
Actually, there are permission problems in my environment with
connecting to servers on arbitary ports. I'm quite happy with the
original SocketAppender and SocketReceiver configuration.
Thanks!
Rakesh
-Original Message-
From: Rakesh Patel
Sent: 03 November 2005 10:57
To: Log4J
eiver, and more than one person can
view the events at the same time, without changing your server
configuration.
Hope this helps,
Scott
-Original Message-
From: Rakesh Patel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 9:41 AM
To: Log4J Users List
Subject: RE: Help getting s
how to configure the SocketReceiver in Chainsaw to
accept events. I tried to put the ip address of the remote server in the
listener property but it won't hold.
What am I missing?
Cheers
Rakesh
-Original Message-
From: Rakesh Patel
Sent: 02 November 2005 16:37
To: Log4J Users
saw GUI - select
the 'view, show receivers' menu item. From there you can create new
receivers, delete receivers, change existing receiver configurations,
start and stop receivers, etc.
Scott
-Original Message-
From: Rakesh Patel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, N
Hi,
Must have missed something!
I have my log4j (actually nlog4j) set up quite nicely. I deployed
recently to our production boxes and thought it would be good to keep an
eye on it remotely. I had a little success with an Eclipse plugin called
Ganymede and a corresponding SocketAppender.
Anyway,
ception in HTML works but not in the java code section.
Any ideas?
Rakesh
-Original Message-
From: Rakesh Patel
Sent: 26 October 2005 13:40
To: Log4J Users List
Subject: RE: SMTPAppender problem
Does anyone know how to access the error in a jSP?
I tried this but it throws a ThreadDeath exce
on your needs this may not be suitable as it allows all code
to read and write to property files and hence you may want to tighten up
the security. Read
http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html#File
Syntax for more information on how to do this.
Hope this helps
Jonathan
Hi,
I have configured the SMTPAppender but get an error during app start up:
[#|2005-10-26T10:13:29.046+0100|WARNING|sun-appserver-pe8.1_01|javax.ent
erprise.system.stream.err|_ThreadID=12;|log4j:ERROR Could not create an
Appender. Reported error follows.|#]
[#|2005-10-26T10:13:29.125+0100|WARNI
I had this problem, there's a bug in the latest release. I built from
source and it been fixed.
-Original Message-
From: Laurent [mailto:[EMAIL PROTECTED]
Sent: 25 October 2005 14:44
To: [email protected]
Subject: Useless INFO messages on stdout with 1.3alpha6
Hi,
Log4j 1.3
Hi Elaine,
I believe the new preferences API in Java uses the registry on windows
(and a text file on Unix). It's the preferred way of storing values in a
non-platfrom specific way
Cheers
Rakesh
-Original Message-
From: Elaine White [mailto:[EMAIL PROTECTED]
Sent: 25 October 2005 1
From: Rakesh Patel
Sent: 21 October 2005 17:20
To: Log4J Users List
Subject: RE: Log4j not working
Thanks for that information Jake. I checked the Sun docs and yes, it
does load parent first. I decided to reinstall the app server (I've been
having issues for a while now with memeory consump
(WorkerThread.j
ava:55)
|#]
Google brings up a lot of stuff but nothing useful in this area. My main
app uses email without needing any additional security settings.
Cheers
Rakesh
-Original Message-
From: Rakesh Patel
Sent: 21 October 2005 17:20
To: Log4J Users List
Subject: RE: Log4j not
to set it up. If you want to use the same
> config file for both then move the config and jar to one common place
> (on Tomcat that is common/classes/log4j.properties and
> common/lib/log4j.jar). What happens if you remove
> C:\Sun\AppServer\domains\domain1\lib\log4j.jar. ?
>
&
mon place (on Tomcat
that is common/classes/log4j.properties and common/lib/log4j.jar). What
happens if you remove C:\Sun\AppServer\domains\domain1\lib\log4j.jar. ?
On 10/21/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> Bizarre...I started the thread "Log4j not working" but Damodar
sh
-Original Message-
From: James Stauffer [mailto:[EMAIL PROTECTED]
Sent: 20 October 2005 19:54
To: Log4J Users List
Subject: Re: Log4j not working
Where is your log4j.jar?
On 10/20/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> Added debug to the App server and here's w
utomatic
configuration.
On 10/20/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Have decided to go back to first principles after a rather painful 1.3
> phase.
>
> First step is to replace 1.3 with 1.2.9. Done.
> Second, create a new property file - copi
Hi all,
Have decided to go back to first principles after a rather painful 1.3
phase.
First step is to replace 1.3 with 1.2.9. Done.
Second, create a new property file - copied one from the manual (and
moved to classpath):
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache.log4j
List
Subject: RE: Next alpha release
At 04:45 PM 10/19/2005, Rakesh Patel wrote:
>Hi Ceki,
>
>Is it possible for my main application to use slf4j and my test cases
>to
>use log4j directly?
Yes, that is possible.
>If so, do I need both log4j.jar (either 1.2 or 1.3) and slf4j-log4j
1.3.x. If your priority is
performance, then try NLOG4J.
I hope this helps,
At 03:03 PM 10/19/2005, Rakesh Patel wrote:
>Hi,
>
>Been hearing about an imminent alpha 7 release for a few weeks now. Any
>news?
>
>There have been a lot of changes from 1.2 to 1.3. The only reason I
ity I want).
Cheers
Rakesh
-Original Message-
From: Curt Arnold [mailto:[EMAIL PROTECTED]
Sent: 19 October 2005 15:08
To: Log4J Users List
Subject: Re: Next alpha release
On Oct 19, 2005, at 8:03 AM, Rakesh Patel wrote:
> Hi,
>
> Been hearing about an imminent alpha 7 rele
Hi all,
Decided to rebuild my log4j configuration settings from scratch and now
its stopped working altogether!
I took an example property file from the official manual and am running
against alpha 6.
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j
Hi,
Been hearing about an imminent alpha 7 release for a few weeks now. Any
news?
There have been a lot of changes from 1.2 to 1.3. The only reason I
opted for 1.3 is because of the ("some data {}", value) functionality.
Is it possible to retrofit that into 1.2? Moving to 1.3 seems quite
painful
Hi,
Yep, did the trick. All working good!
Rakesh
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: 10 October 2005 16:29
To: Log4J Users List
Subject: RE: Switching to XML configuration does not work
Quoting Rakesh Patel <[EMAIL PROTECTED]>:
> Hi,
>
&
: Log4J Users List
Subject: Re: Switching to XML configuration does not work
Use DOMConfigurator.configure for XML files.
On 10/10/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Probably something basic but at present my testcase intialises log4j
> like this and it works:
Hi,
Probably something basic but at present my testcase intialises log4j
like this and it works:
PropertyConfigurator.configure("c:/Projects/FETServer/conf/log4j.propert
ies");
Now I want to swap to XML file configuration (only because I could not
get SMTPAppender working and found xml examples!
>
> Because you forgot the attribute additivity="false"
> BTW: you should use the new Identifier "logger". "category" is deprecated.
>
>
>
> and
>
>
>
> Heri
>
> > -Original Message-----
> > From: news [ma
On 10/5/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How do I do the coding equivalent of:
>
> log4j.logger.org.springframework=OFF
> log4j.logger.org.apache.log4j=OFF
>
> Thanks
>
> Rakesh
>
>
> American Express Investments and American Expre
I have the following log4j.xml file. I've included the salient portions. here
is what i see:
1. i see the logs from logger com.company.a.b.c.f in msglog.log via the
message_appender (info level and above).
2. i see the logs from logger com.company.a.b.d.f in msglog.log via the
message_appender
Hi,
How do I do the coding equivalent of:
log4j.logger.org.springframework=OFF
log4j.logger.org.apache.log4j=OFF
Thanks
Rakesh
American Express Investments and American Express Independent Financial
Advisers are marketing names for American Express Financial Services Europe
Limited, a separ
. If anyone has managed to get it to
work with a property file, please post it here!!!
Thanks
Rakesh
-Original Message-----
From: Rakesh Patel
Sent: 04 October 2005 17:18
To: Log4J Users List
Subject: RE: Log4J Eclipse
I've just installed Ganymede but cannot get it to work. No errors,
I've just installed Ganymede but cannot get it to work. No errors, just
nothing. Here's my property file:
log4j.rootCategory=DEBUG, Ganymede
log4j.appender.Ganymede=org.apache.log4j.net.SocketAppender
log4j.appender.Ganymede.remoteHost=localhost
log4j.appender.Ganymede.port=4445
log4j.appender.Ga
ailto:[EMAIL PROTECTED]
Sent: 29 September 2005 15:12
To: Log4J Users List
Subject: RE: Cannot turn off logging when using JUnit
Quoting Rakesh Patel <[EMAIL PROTECTED]>:
> I am indeed using the 1.3 alpha version.
>
> However, adding this line makes no difference:
>
> log4j.lo
ty high for the org.apache.log4j logger.
Jake
> hth,
> -Mark
>
> On 9/28/05, Rakesh Patel <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a test set up that logs and also the class under test logs
> > too.
> >
> > I want to turn of logging
Hi,
Is it possible to provide a mock version of the Logger class? I want to
be able to pass a mock class for my unit tests.
Thanks
Rakesh Patel
Project Architect
IFST
Tel: +44 (0)20 7153 4243
Fax: +44 (0)20 7153 4153
Mobile: +44 (0) 7921 582573
American Express Investments and American
default].
log4j:INFO Returning existing logger
[com.amex.ifst.fet.dao.OracleStoredFunction] in repository [default].
log4j:INFO Creating new logger
[org.springframework.jdbc.core.StatementCreatorUtils] in repository
[default].
Rakesh Patel
Project Architect
IFST
Tel: +44 (0)20 7153 4243
Fax: +
Here is the scenario:
1. Program A is published its log4j messages via a SocketHubAppender on port X.
2. I have written a program where I connect to the socket on port X. I am using
the standard Java socket API.
I am able successfully able to connect to port X and read the socket, but the
pro
I would like to programmatically read from various SocketHubAppenders. Reason
is, I was to exam the message and them do some processing based on the message.
I like to write a program to do this, would the best way be to somehow use the
SocketNode or another method is better? I'd like to preserv
Scott Deboy comotivsystems.com> writes:
>
> hostname and application properties are concatenated to determine the
tab routing..you can change
> this in the app-wide prefs window.
>
> By the way, socket-based appenders define the hostname property for you -
that's why you see two tabs.
>
> I
I am trying to determine how i can create the proper tab identifiers in
chainsaw, here is my current scenario:
i have a chainsaw config file where i listen to 4 socket hub receivers. one
socket hub receiver connects to a port box1 and the three remaining socket hub
receivers listen to three box
Any have success using the RollingFileAppender with chainsaw?
1. How to create a "receiver" for such an thing? What is the appropriate
receiver to be created in chainsaw to handle a rollingFileAppender?
2. Will Chainsaw be able to appropriately switch the to latest log file after a
rollover has
Scott Deboy comotivsystems.com> writes:
>
> Added SoundAppender to CVS HEAD - should be available in next 1.3 alpha
release.
>
> See http://cvs.apache.org/viewcvs.cgi/logging-
log4j/src/java/org/apache/log4j/varia/SoundAppender.java?rev=1.1&view=markup
>
> You'll need to add a filter to this
ster (depending on license) or just a noise,
> > triggered by a user-defined expression?
> >
> > -Original Message-
> > From: news [mailto:news sea.gmane.org] On Behalf Of Rakesh Patel
> > Sent: Thursday, September 01, 2005 1:25 PM
> > To: log4j-user loggi
i could not find a place to send my suggestions regarding chainsaw, so i
thought i'd posted them here because lot of the log4j/chainsaw contributors
read this group.
an ability to set chainsaw to make a noise, flash, send email when it see
message of a certain pattern come across of a certain l
I am trying to configure chainsaw/log4j to use the JMSAppender. I am unable to
follow the javadoc for the JMSAppender. Can anyone tell me how to configure the
JMSAppender with Sonic MQ? An example would be most illuminating!
Rakesh
-
i downloaded the chainsaw v2 package, loaded the example chainsaw configuration
file. the odd thing is i am unable to instaniate the LogFileReceiver receiver.
the chainsaw console window shows the following exception:
LOG4J-INTERNAL: 2005-08-29 15:09:15,202 ERROR [Thread-7] org.apache.log4j.help
I have multiple applications running on multiple boxes(solaris/linux) across
our network. There will be multiple instances of chainsaw running on multiple
client pcs - the chainsaw clients can come up at any time and be shutdown
anytime.
so i want is:
1. each chainsaw user have the ability to
I am unable to find any documentation to correctly configure a JMSAppender that
is to be used with Sonic MQ. Anyone out there ever setup up a JMSAppender with
Sonic MQ? I would like to specify the configuration in a log4j.properties file.
Thanks
Rakesh
--
60 matches
Mail list logo