I am writing an applet, and hoping I can find a way to log to a JFrame.
My applet consists of many classes. So I 'll have to wrap them in a jar.
Is there a direct way to do this ??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Since you defined additivity=false on your com.schinvest Logger, the log
messages don't reach the root logger.
Your goal can be achieved by xml configuration where you can declare filters on
appenders. So you only declare a root logger with debug level and a net.sf
logger with warn level. On
declare a separate logger with your SPECIAL_APPENDER attached and additivity
flag false. You are not forced to use the classname as logger name. You can
choose any string (i.e. SPECIAL_LOGGER).
Heri
-Original Message-
From: Bryce Nesbitt [mailto:[EMAIL PROTECTED]
Sent: Thursday,
James Stauffer wrote:
Correct me if I am wrong.
You have different users running your application but they all write
to the same log file. Can you make each user log to their own file
(i.e. in their home directory)?
If it isn't important what you log, and want to allow users to modify
their
Shashank davanagere at gmail.com writes:
Hmm.. it doesnt sound too secure unless we coudl use ssh to secure the ports.
Then that might be a bottleneck. We obviously cannot have logs that are not
secure... :roll:
-
To
if both machines are on a local network you just have to make sure the used
port is not open to the outside world.
with reasonable firewall setting this should be the default anyway
so no need for ssh...
another solution might be to log into a database
Shashank-3 wrote:
Shashank davanagere
Write your own appender that passes the messages to the JFrame.
On 9/14/06, Mansour [EMAIL PROTECTED] wrote:
I am writing an applet, and hoping I can find a way to log to a JFrame.
My applet consists of many classes. So I 'll have to wrap them in a jar.
Is there a direct way to do this ??
I suggest that you create 2 loggers per class.
Logger logger = Logger.getLogger(getClass());
Logger loggerSpecial = Logger.getLogger(special. + getClass().getName());
log4j.rootLogger=ERROR
log4j.category.org = A1
log4j.category.special = SPECIAL_APPENDER
(I am not positive if I have the
If you configure commons-logging to use log4j then the rest should be
normal config of log4j.
On 9/14/06, Raghuveer [EMAIL PROTECTED] wrote:
Since for struts framework commons-logging.jar is used
How can I use Commons logging so that logs related to my application are
sent to seprate log file.
Here is an example of an xml configuration which uses filters (BTW: Using this
two appenders when debugging in eclipse the console shows the DEBUG and INFO
in black color and the others in red color). You can also write your own filter
class where you are free to filter what you want. Be
thanks patrick. i think thats the way we woudl want to go in.. or by using
jmsappender to log in messages. as long as it doesnt add much overhead to the
system we should be good going the jms way...
-
To unsubscribe, e-mail:
We want to set up or log4j configuration with thread specific log files.
I've been through many archives and have seen several suggestions, but
I'm still looking for a solution better aligned to our needs. I'll
summarize the solutions I've already stumbled across in case there was
something I
ApacheCON US 2006 (http://www.apachecon.com) will be held on October
9-13 in Austin, TX. Registration prices increase yet again tomorrow
and hotel reservations should be made soon to take advantage of the
special conference room rates. I've tentatively scheduled a Logging
Services BOF
4. Write your own appender that potentially changes the logfile name
per logging event. I do a smiliar thing with an appender.
http://stauffer.james.googlepages.com/DateFormatFileAppender.java
On 9/14/06, Edward L. Knoll [EMAIL PROTECTED] wrote:
We want to set up or log4j configuration with
My requirement is to have seprate config file for my app.
My src directoy is like
com.xyz.x.test1.class
com.xyz.v.test1.class
I need to log only my application related logs in seprate file called
test.log.
I dont want struts internal logs in my application log file test.log
Raghu
15 matches
Mail list logo