At 04:57 AM 8/11/2006, you wrote:
>Scott and Jake,
>Thanks to your help, now it works,
>It seems that my fileURL was not containing the complete host-domain
>name (it works for pscp with only the hostname but not with
>chainsaw/jsch).
>
Glad to hear you go it working. However, I would bet that y
James,
That was perfect, I have extended it to log to separate directories based on a
MDC value as well as name the file based on the MDC value and append today's
date.
I have posted the version I am now using at:
http://jeremylevy.com/MDCFileAppender.java
Jeremy
-Original Message-
Correct!
Logger configLogger = Logger.getLogger("CONFIG." + getClass().getName());
On 8/11/06, Madduri, Murthy <[EMAIL PROTECTED]> wrote:
Hi James/Javier,
I realized it now after trying this. Here is my logger.
Hi James/Javier,
I realized it now after trying this. Here is my logger.
What I have to do is have this logger initiated with "CONFIG" prefix in all the
classes where I want to track trace events.
Thanks & Reg
On 8/11/06, Madduri, Murthy <[EMAIL PROTECTED]> wrote:
Well, the question I have is how can we have this level config which is not in the
regular list of levels? I mean the "config" level messages here are those
messages that are related to one flow of Configuration activity. This may include c
a separate log file. Similarly, I wanted to have CONFIG, SECURITY,
BUSINESSACTIVITY, >PERFORMANCE custom log levels in the same level
below DEBUG.
I think you would be better served, as James points out, by using
different logging hierachies:
Create different loggers for different stuff, for ex
Well, the question I have is how can we have this level config which is not in
the regular list of levels? I mean the "config" level messages here are those
messages that are related to one flow of Configuration activity. This may
include classes ( hierarchies) from com.xxx.config.init, com.xxx.
I don't understand your question. How what? How to use separate config files?
On 8/11/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
OK, but technically how?
from config file? can the config file make a reference to an other
config file? what is the syntax of this command?
Thanks:
Bence
According to the documentation you need to make your own MyLevel class
and extends the original Level. But I haven't done it yet, and don't
know if it's enough or not and how much additional work you need.
Madduri, Murthy wrote:
OK, but technically how?
from config file? can the config file make a reference to an other
config file? what is the syntax of this command?
Thanks:
Bence
James Stauffer wrote:
On 8/11/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
> If you want all projects to use the same config
>
You could easily not using sub-logger levels under your custom loggers
-- but using them gives you a little extra info (that you could easily
just not use unless you find a need).
Logger logger = Logger.getLogger(getClass().getName());
Logger configLogger = Logger.getLogger("config");
Logger busi
Thanks, It works.
And do somebody know anything about that "zeroconf" thing mentioned on
Chainsaw's webpage? Does somebody configured successfully the zeroconf
appender?
If yes, how?
Thanks:
Bence
Scott Deboy wrote:
In Chainsaw, when you launch it and it asks you for a configuratio
James,
The custom levels I intend to have are not packages.
So, even if I get a logger basing on
Logger configLogger = Logger.getLogger("config." +
getClass().getName());
I guess this returns a logger that was defined as config.xxx.xxx.
But, our package hierarchies do not reflect the custom logg
If you want an appender to only have config level messages and no
other level of messages then you don't really want a new level.
Levels are all about cascading priorities and if you don't want that
then a new logger hierarchy is actually much better. To add a new
level takes some new classes and
On 8/11/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
> If you want all projects to use the same config
> then you are grouping them together logically.
How?
You are telling them all to use the same config so you are having them
all use the same log4j instance.
--
James Stauffer
Are you good? T
>
>
>
>
>
>
>
>
The appender mentioned in the above example is an appender that writes to a
separate log file (ex, myapp-config.log) file. But, my question is how can I
define a custom Level CONFIG and make it
Thanks
For me the root level and the selective configuration mean that I don't
need to but them separately. But it seems that you are right.
> If you want all projects to use the same config
> then you are grouping them together logically.
How?
Thanks:
Bence
James Stauffer wrote:
I
In Chainsaw, when you launch it and it asks you for a configuration,
select the 'SocketReceiver/port 4445' option.
On the app side, use a SocketAppender pointing to localhost, port 4445.
Chainsaw should start to receive your events automatically.
You probably need to make sure locationInfo is no
On 8/11/06, Madduri, Murthy <[EMAIL PROTECTED]> wrote:
We have hierarchical logging in our applications.
But, this requirement is to have the logs grouped based on a custom
level.
For a typical configuration transaction, the logger can record messages
from various hierarchies. We are not guarante
Where would you want your new levels to fit into the current levels?
Currently there is debug, info, warn, error, and fatal. Where do you
want to add your new levels in that list?
Here is an example of how you would use different logger hierarchies:
Logger logger = Logger.getLogger(getClass().ge
I meant different config files. If you move the lib/log4j.jar and
classes/log4j.properties from the shared classpath (i.e.
tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app
will use a separate config file.
On 8/11/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
Hello
> If you
We have hierarchical logging in our applications.
But, this requirement is to have the logs grouped based on a custom
level.
For a typical configuration transaction, the logger can record messages
from various hierarchies. We are not guaranteed of the sequence of
messages in this whole transaction.
Hello
Could somebody suggest me a way to try Chainsaw? (appender, appender
config, and chainsaw config)
I've tried the zeroconf thing on the website, and didn't worked. Could
it be the problem, that I runned both my application and Chainsaw in the
localhost?
Thanks:
Bence
Hello
> If you don't want that to happen then you can use
> separate configs per project
I thought, this is what theese lines do in properties file:
log4j.logger.hu.watt22.wde22.cc=DEBUG, logfile
log4j.logger.hu.watt22.wde22.cc=DEBUG, zeroconf
log4j.logger.hu.watt22.wde22.ctransfer=DEBUG, logfile
Have you considered having separate logging hierarchies instead? That
is often a better solution.
On 8/11/06, Madduri, Murthy <[EMAIL PROTECTED]> wrote:
Hi,
We are using log4j for our core business framework and it works fine.
One of recent requirements is that we need to capture different
Hi,
We are using log4j for our core business framework and it works fine.
One of recent requirements is that we need to capture different logging
events: very much customized.
For example, they need a Configurations event, Business Activity event
etc.
1) Is there a way we can extend
Yes. When log4j is configured, it configures all of itself so it of
course needs to be able to configure every appender. I suppose it
could be made to configure appender lazily but it doesn't. It isn't
really weird. If you don't want that to happen then you can use
separate configs per project.
Hello
The projekt uses the configuration, but has no SMPTAppender attached to
it. You mean, that if it use a config in which I call an appender: every
package I use should meet the requirements of that appender?
This would mean that all my projects would use the mail.api and
activation.jar b
Yes. I made an Appender that changes the filename based on the time.
You could change it based on anything in the LoggingEvent.
http://stauffer.james.googlepages.com/DateFormatFileAppender.java
On 8/11/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote:
In my application, we have the consumer pass in t
If a project that doesn't need to send email uses a log4j config that
includes an SMPTAppender log4j still needs to configure that appender
so it needs mail.jar and activation.jar.
You don't want to have 2 copies of the same jar in the classpath twice.
On 8/11/06, Takacs Bence <[EMAIL PROTECTED]>
In my application, we have the consumer pass in the name of the application
that is using our service.
So we generally only have about 4,5 consumers. This is small enough that we
can manually add them to the properties file. However, as our utility grows I
don't want to have to maintain or
Hello
I'm sorry, it was because the catalina was stucked in the memory. Now,
it's OK.
No error message, but I don't see the logs in the chainsaw.
What kind of configuration do I need? For the ZeroconfAppender and for
chainsaw.
I use Linux, and run the tomcat on localhost.
I use the followin
Hello
I've tried to use chainsaw with zeroconf. I put the jars into the
projects Build Path, and attached the zeroconf appender to the project.
It throw the following exception:
Aug 11, 2006 12:15:50 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Nativ
Hello
I've found a solution on the net:
Deleted all tomcat projects includes the mail.jar, and copied the
mail.jar and activation.jar to the /tomcat/shared/lib, and everything
looks fine.
But WHY???
It has solved the problem, but it's not a real solution. The problem
remained unrevealed. My
Scott and Jake,
Thanks to your help, now it works,
It seems that my fileURL was not containing the complete host-domain
name (it works for pscp with only the hostname but not with
chainsaw/jsch).
If Scott has information about the PromptForUserInfo availability, I'm
still interested.
Thanks a lo
Greetings
I've been using log4j for a couple of weeks with tapestry framework, on
tomcat. [We've been using tapestry and tomcat for a year] It was working
properly, until I attached the SMTPAppender to a tapestry projekt.
An other projekt throws the following exception:
org.apache.commons.logg
My URL looks like
sftp://user:[EMAIL PROTECTED]:22/complete/path/to/file.ext
(I've tried with and without the port number and I get the same error)
I've also tried not to embed the login/password. As described in the
examples provided in the "Welcome-> View example Receiver
configuration" tab of
37 matches
Mail list logo