Correct.
Look at the History file.
- Original Message -
From: "Jay Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 3:36 PM
Subject: Logger class
>
> This seems like a silly question, but I just downloaded the 1.1.3 zip file
> from the website and th
Log the output to a file. then open the file in an editor supporting UTF-8
chars e.g. IE browser.
Your console doesn't support UTF-8 characters, hence you see "".
log4jv1.2 is beta now. beta 5 I believe. Not alpha.
- Original Message -
From: "Oleg A. Paraschenko" <[EMAIL P
Use ErrorHandler.
It's trivial to implement.
- Original Message -
From: "Rob Walker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 10:16 AM
Subject: Not sure if this has been change
> Under 1.3.1, if a SocketAppender can't reach connect to it's destination i
I do not know how to disable a partial heirarchy. Never needed to know still.
You would be the best bet for help Ceki :-p
- Original Message -
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 3:40 PM
Subject: Re: Turning o
My previous post was with regards to Logging system wide per se.
For individual Category, Logger instances, use the appropriate setPriority() and
setLevel() methods respectively.
- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: "Log4J Users List"
This is what I use for log4j v1.2:
Enabling:
LoggerRepository hierarchy = LogManager.getLoggerRepository();
hierarchy.setThreshold(Level.ALL);
Disabling:
LoggerRepository hierarchy = LogManager.getLoggerRepository();
hierarchy.setThreshold(Level.OFF);
This is
The Log4J version that contains class Logger is log4j v 1.2
v1.2 is currently beta and downloadable from the apache.org site.
The version you are mentioning is v1.1.3
- Original Message -
From: "Nand Rayanker" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesd
Do you have a version of Cactus previous to when the problems occurred?
Note any differences? Just a thought!
ps, i laughed at the grin!
- Original Message -
From: "Vincent Massol" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, Feb
, to preserver backward compatibility.
This is what the problem was with building JBoss using the log4j v1.2beta 2
jar - what caused the compile error.
I've looked in the history, and there is no mention of the method being removed.
Am I in error?
Regards,
T Master
--
To unsubscribe, e
is to specifically the fully qualified name of the Logger class
whereever I use it in my own code.
Even better would be for the JBoss group to modify theirs as it conflicts with
log4j1.2 .
I'll notify them via a separate email post.
Regards,
T Master
Compile error of JBoss 3.0beta2 wit
with the new log4j v1.2 jar?
Help/Tips/Thoughts on either the classpath issue or integrating the log4j1.2
jar file into JBoss would be extrmely appreciated.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
in yout startup batch script for WL 6.1 sp2,
specify:
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
echo %CLASSPATH
This would rmove any doubt of the system classpath.
After warring and earing... unzip them all. and hunt for log4j.jar
an idea..
[the plot thickens..]
--
Logger is from log4j v1.2
Yet you only have v1.1.3 in your classpath
And the Logger class cannot be found at runtime.
I say examine your classpath, ensure the correct version log4j is used
If you are building Cactus, search for 'Logger' (from log4j) . If found, it
must require log
]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 12:33 PM
Subject: RE: How may I catch an IOException when there disk space has run out
for a FileAppender?
> > -Original Message-
> > From: T Master [mailto:[EMAIL PROTECTED]]
&g
emory requirements of zipping are a lot imho);
T Master
- Original Message -
From: "Keith Schomburg" <[EMAIL PROTECTED]>
To: "Log4j" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 11:14 AM
Subject: RE: How may I catch an IOException when there disk
From: "Step" <[EMAIL PROTECTED]>
> I want to change my RollingFileAppender's log file at runtime,
> how can I do it.
ACCESS.setFile(validLogDir+ACCESS_FILENAME);
ACCESS.setMaxFileSize(MAX_FILE_SIZE);
ACCESS.setMaxBackupIndex(MAX_BACKUP_
specifying the file option.
With the properties file:
log4j.appender.MYAPPENDER.File = c:\\log.txt
Research the XML format for yourself.
HTH
T Master
- Original Message -
From: "Marco Perrando" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]&
Call :
appender.activateOptions();
:)
- Original Message -
From: "Marco Perrando" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 8:44 AM
Subject: Use of PropertyConfigurator
I need to initialize my log4j system by PropertyConfigurator. I need a
Rolling
Sounds very similar to what i do.
I use different categories to direct my messages to another
fileappender...thus..different log file.
just instantiate the cateogires you need. and use them appropriately.
- Original Message -
From: "Tom Bednarz" <[EMAIL PROTECTED]>
To: "log4j user list
The Category and Priority names were indeed modified to fit the JDK 1.4 Logging
api names, Logger and Level respectively.
Backward compatibility is maintained. See the history i previsouly replied back
to you for what client code will need changing and what will not.
- Original Message ---
http://jakarta.apache.org/log4j/docs/HISTORY
- Original Message -
From: "Charlie Cano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 10:09 AM
Subject: Changes/Features of 1.2(beta)
>
> Is there any info on what is changing/added in 1.2? I've seen some
That just shows bad design in your Category/Logger design IMHO.
Disclaimer: Personal opinion expressed. :D
- Original Message -
From: "Dan Lipofsky" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 10:02 AM
Subject: Re: double logs
> I h
Not sure if you've checked this...but
- Verify you don't have double appenders in the same Category/Logger.
-Then verify you aren't logging to different Category/Loggers that share an
Appender.
- Original Message -
From: "Jacek Kempski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
LogLog is Log4J's internal error handling. By default it will output errors to
stdout/stderr.
It may be disabled by LogLog.setQuietMode(true);
The ErrorHandler is for users to specify. By default the OnlyOnceErrorHandler
is employed.
Another errorHandler may be set on an appender.
T M
ckup) +AHs-
LogLog.debug(+ACI-FB: Setting backup appender to +AFsAIg- +- backup.getName() +-
+ACIAXQ-.+ACI-)+ADs-
this.backup +AD0- backup+ADs-
+AH0-
Using log4jv1.2-beta2.
Regards,
T Master.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail
First read the manual:
http://jakarta.apache.org/log4j/docs/manual.html
Then read the javadocs:
http://jakarta.apache.org/log4j/docs/api/index.html
Pay attention to SocketAppender and any of the FileAppender subclasses (decide
which to use).
HTH
T Master
- Original Message
. Bad no doubt as it would break existing code. Alternatively, the method
could be javadocced to state that it should not be used.
Regards,
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
onday, February 11, 2002 1:41 PM
Subject: Re: compile error upgrading from log4j v1.2 alpha 7 to v1.2 beta 2
>
> T Master,
>
> Subsequent to your query, I added the following entry into the
> Troubleshooting guide:
>
> ===
Look at ErrorHandler.
It is more promissing in logj v1.2 though from what i read of the javadocs.
I have not used it in my implementation as yet though.
- Original Message -
From: "Balaraman Sujatha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 6:03 PM
Su
ception when there disk space has run
out for a FileAppender?
>
> T Master,
>
> Have you considered ErrorHandlers? You can atttach an ErrorHandler
> to any appender. See for example FallbackErrorHandler.
>
>
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/varia/Fallb
Ceiki,
Do you have an answer for the problem below?
If there was a listener allowed, then I could change the file paths
(assuming i had a spare disk to use).
T Master.
- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursd
1. How may I catch an exception thrown when there disk space has run out for
a FileAppender?
2. It would be nice to register a listener (imho) for when diskspace runs
out.
Console Output from such a scenario:
log4j:ERROR Failed to flush writer,
java.io.IOException: There is not enough space
that could potentially happen in subclasses.
>
> Yes, I did mean 1.3.1 of Log4j
>
> -Original Message-
> From: T Master [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 11:44 AM
> To: Log4J Users List
> Subject: Re: FileAppender and file Location & ge
time (not recommened for use). The
code is still existant.
You mean log4j v1.1.3 i assume.
T Master
- Original Message -
From: "Anshul Chhabra" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2
You need an smtp to sms (or whatever it is for pagers) gateway.
That's what i use to receive urgent msgs on my mobile 'phone.
- Original Message -
From: "Wilfred Ho" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 8:53 AM
Subject: RE: send
lse).
Also, copy and paste programmers wouldn't have to be shot by me :o)
T Master
- Original Message -
From: "Silvert, Stan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 1:39 PM
Subject: Clever Logging?
> I am responsible fo
e the appserver I use uses log4j too. Safer and prevents conflicts.
T Master
- Original Message -
From: "Aron Kramlik" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Saturday, January 12, 2002 2:34 AM
Subject: Re: multiple components
ed up a portion. One problem I found was OutputStreamWriters
constructors don't allow appending to be set together with the encoding
property.
Either one or the other.
Anyway, thanks for another prompt reply again.
T Master
- Original Message -
From: "Ceki Gülcü" <[E
FileAppenders thought the API.
Regards and HTH :o)
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- Original Message -
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 3:12 PM
Subject: Re:
org.apache.log4j.helpers.AppenderAttachableImpl.addAppender(Appender
newAppender)
>
> T
ST.
category has -FILE_DEST.
Forgive me for babbling, or being mistaken.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Below are some properties I took note of from a collection of log4j emails.
I've never used the log4j.threshold property.
I have managed to disable ALL logging and restart all though.
// @see email correspondence: 27th September 2001 in Log4J mailing
list
// "Subject: Re: Restart
I set my level to FATAL so none of the info() messages are output.
This is how i do it:
"log4j.category.MyLogger = INFO" == ON
"log4j.category.MyLogger = FATAL" == OFF
- Original Message -
From: "Michael Weir (Transform Research)" <[EMAIL PROTECTED]>
To: "'Log4J Users List'" <[EMA
What about creating your own hierarchy of Category objects and Appenders?
This wouldn't interefere with another log4j configuration. Instantiate the
objects at runtime.
It is possible to turn off indiviual Category objects by changing their
Priority level.
T Master
- Original Me
l the appenders in my
category before and after i change the log directory.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
the name of a FileAppender when constructed
dynamically?
>
> Just use the setName method from the AppenderSkeleton superclass. HTH,
Ceki
>
> At 16:42 07.01.2002 -0700, T Master wrote:
> >What is the name of a FileAppender when constructed dynamically?
> >
> >I am u
by using appender.getName() to check if a Category contains my
appender.
It is always returning null.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
cannot be deleted),
and that corressponding log entries are contained in them also.
Is this somehow caused by duplicate Appender instances of the same name, or
a bug (I'm not implying anything!).
Hope you can shed some light.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECT
gt;
Sent: Friday, January 04, 2002 4:12 PM
Subject: RE: Turning a Category On/Off
> i think what you see in the console is your system.outs ... remove them
from the
> code and try ...
>
> -Original Message-
> From: T Master [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 0
:
** UPDATE SUCCESS -> OFF
T Master
----- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 3:03 PM
Subject: Turning a Category On/Off
>
> Apologies for dumb questions...
>
> I am tr
rning my Category OFF , messages logged at the info level
still appear in my File.
I believe I'm doing somethign really stupid or should not be using DEBUG as
my OFF equivilant.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Update.
There is no method to change the file.encoding used by the FileWriter that
the FileAppender uses.
My workaround was to specify the file.encoding property at UTF-8 , and now
my log files contains unicode characters.
T Master.
- Original Message -
From: "T Master&quo
7;ve noticed in my system that uses Unicode characters, that these are not
output because I have not modified the encoding scheme.
I may be totally wrong in my statement, so plese correct me.
I am trying to use UTF-8 as my encoding scheme, and it is this i would like
output to file.
Ho
o ascertain the unicode
values as meant to be displayed.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Call :
category.info("my message", aExceptionObject);
LOOK at the Category javadocs.
Your Appender's output will then have a stack trace from the Exception.
HTH.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 10:28 AM
Subject:
Ah!!!
Thats in the javadoc too for the method!
*slaps himself*
Thanks Ceiki.
- Original Message -
From: "Ceki Gulcu" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 11:35 AM
Subject: Re: FileAppender.setFile(newFile) not working?
>
Strange problem I'm experiencing.
I have a FileAppender.
I changed the file it logs to at run-time.
Whilst getFile() returns the new filepath correctly,
the old file is still being logged to.
Anyone experienced, or tried this feature?
T Master
--
To unsubscribe, e-mail: <mailt
thoughts of mine.
Any input appreciated.
T Master
- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 11:27 AM
Subject: log4j:ERROR Attempted to append to closed appender named [null].
>
>
tempted to append to closed appender named [null].
log4j:WARN Not allowed to write to a closed appender.
Thanks.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Is it possible to supress the Log4J:WARN messages ot the console?
If so, how?
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Remember, if the dir does not exist, log4j spits out FileNotFoundException
So you should validate prior to setting any value if the dir exists or not.
- Original Message -
From: "Jon Skeet" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 1
According to the javadocs (extract below) for log4j v 1.1.3,
there is no way to have an unlimited number of backups.
0 = no backups
1 .. n = backup files
Is there a possibility of say -1 maning unlimited?
Or is there another workaround?
T Master
public void setMaxBackupIndex(int maxBackups
if ( _cat.isEnabledFor(Priority.FATAL) )
> return "FATAL";
>else
> return "NONE";
> }
>
> Maybe I could add a " String Category.checkPriority()" which
> does the above check to Log4j.
It's allowed Scott. Strange as it seems.
Ceiki told me to lok at the source code to see why.
Check the archives for my message and the response.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 30, 2001 11:20 AM
Subject: Is Category.getPriorit
Through inheriting the priority level right?
Then my child must have level == INHERIT.
Correct?
- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2001 2:40 AM
Subject: how to disable a category from it
Given a category with name
"log4.j.category.DEBUG = INFO"
and
"log4.j.category.DEBUG.child = INFO"
Is it possible to disable the child by disabling the parent?
I hope that's clear enough.
T Master
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]
Look at PropertyConfigurator
Read the javadocs on that.
- Original Message -
From: "Qaz Zaq" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 11:20 AM
Subject: Auto-reconfiguration?
> I dropped out log4j.properties in the classpath, and
Is it permitted to include other information in the log4j configuration
properties file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am setting the date format to use by:
log4j.appender.TRACKING_DEST2.layout=org.apache.log4j.PatternLayout
log4j.appender.DEST.layout.ConversionPattern=%d{dd MMM HH:mm:ss,SSS}
[%m %n
However I get exceptions. What am I doing wrong??
.log4j:ERROR Error occured while converting date.
- Original Message -
From: <[EMAIL PROTECTED]>
> I was wondering in general should you only ever have one log4j properties
> file and if you are using a file appender then should you only ever have
> one file appender or can you have multiple and separate the output based
> on class?
Mu
category.setLevel(Priority.INFO);
Notify which class that a Level has changed?
You can obtain all the Categories using:
Enumeration enum = Category.getCurrentCategories();
Then iterate through and set the level of all of them.
- Original Message -
From: "Alex Colic" <[EMAIL PROTECT
Yes, i did that last night after Ceiki said I was being Lazy :o)
First I gave my Heirarchy a RootCategory of INFO.
Still no joy. Then I looked at getPriority() and getChainedPriority().
I agree with you, that if getPriority() == null, then getChainedPriority()
should be called.
However, if that
Counting...
Three seconds to load Category.java and see:
final Hierarchy defaultHierarchy = new Hierarchy(new
RootCategory(Priority.DEBUG));
A RootCategory is guarenteed a *not* null Priority.
So my thinking and understanding it to use this for my own Hierarchy.
"The root categor
e when that would happen... of course, we may be using log4j in
> totally different apps and that is why...
>
> Ylan
>
> > -Original Message-
> > From: T Master [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 18, 2001 4:24 PM
> > To: LOG4J Users M
Noone has responded to my previous email..
Is this a bug? My workaround is to set a default INFO priority always.
- Original Message -
From: "T Master" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 4:43 PM
Subject: Null Priority
00 PM
Subject: RE: removing a Category...
> T:
>
> Why do you want to remove a Categpry in the first place?
>
> Ylan Segal
>
> -- Failure is not an option, it comes bundled with your Microsoft product
>
>
>
> > -Original Message-
> > From: T Mast
First of all, all replies welcome!
A Category can be created dynamically. However, is it possible to
"destroy"/ remove one?
Perhaps a workaround is to remove all its appenders (so it is effectively
doing nothing), and set its priority to FATAL.
Then when created, to get the instance by name
chy( Category.getInstance("USER") );
If a Hierarchy is created with a Category that has no defined
Priority/Level, then what is the default?
Regards,
T Master
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Define a Category with a name "DEBUG".
Then use that in your code.
Define your own Appender, with PatternLayout too.
Use a config file (xml, or properties based) to load this up.
Example ConsoleAppender with patternlayout.
log4j.appender.DestinationP=org.apache.log4j.ConsoleAppender
log4j.appe
time as does giving
> it ISO8601 as the pattern.
> Any ideas?
> thanks
> -Tim
>
> -Original Message-
> From: T Master [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 16, 2001 3:21 PM
> To: LOG4J Users Mailing List
> Subject: Re: UTC Timestamp
>
>
> Use
Use this in your properties file:
log4j.appender.MyDestination.layout.ConversionPattern=%d{-mm-dd
HH:mm:ss,SSS} %c %m %n
Modify the date format after the %d and within the { } to suit UTC format.
My 2cents worth!!
T Master
- Original Message -
From: "Tim Collins&quo
Lindsay,
If you read the Javadocs, the methods names follow the JavaBean naming
standard for methods.
The properties to specify in the config file can be found by removing the
"set" from method names.
I went through all the Javadocs and wrote them down. Lengthy process :)
then on the
new declaration of these?
I simply need clarification.
T Master
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
;get" methods in the JavaDocs for the Appenders? Take the "set" off and
> there are the propery names you want for the properties file.
>
>
> -Original Message-
> From: T Master [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 2:17 PM
> To: L
They were in the email i received.
I use Outlook Express on Win2k. Not by choice Don;t even have a bcc:
option AFAIK.
What's Ceiki using?
- Original Message -
From: "Mark Masterson" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 03,
Jon,
Are you using a properties file?
Do you have examples for the key values of the differerent Appender types?
I only have an example of File Appender.
Would really appreciate it if you could send me the key names.
Thanks
Tariq.
- Original Message -
From: "Jon Skeet" <[EMAIL PROTE
Would anyone be good enough to send me examples of the properties file
format for each of appenders.
I've managed to code the FileAppender.
I'm stuck on the others though.
TIA.
T Master
-
To unsubscribe, e-ma
cts as its root.
e.g.
log4j.hierarchy.h1 = ONE
log4j.hierarchy.h2 = TWO
log4j.category.ONE=INFO
log4j.category.TWO=INFO
Is this possible?
T Master.
- Original Message -
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PR
Ceki ,
Is it possible to store hierarchys in a log4j.properties file?
If so, how?
There is no example on the subject.
T Master
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Original Message -
From: "Ishihara, Noriaki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 2:45 PM
Subject: RE: socket appender
> Well, the args[0] contains c:\configSocket.lcf, and I am not sure why a
call to PropertyConfigurator.configure(args[0]); w
Your config file is :c:\configSocket.lcf
Apparently you are passing: c:\.lcf hence the warning message.
Log the contents of args[0] , and see the actual value, and correct as
necessary.
T Master.
- Original Message -
From: "Ishihara, Noriaki" <[EMAIL P
Is it possible to modify an Appends layout during run-time?
I have a PatternLayout, and I want to modify the conversion pattern
dynamically.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
What is the server argument for in NTEventAppender?
Example value?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ent: Thursday, September 20, 2001 11:25 AM
Subject: RE: Disabling logging from a Configuration File
> ...can that be done via a configuration file (configureAndWatch()) ?
>
> I want to be able to do it in real time while the app is running...
>
> --Stephen
>
> -Original
As far as i know, it must be done through Hierarchy.disableAll() and
Hierarchy.disableAll(Priority)
Hierarchy.enableAll() can be called afterwards when required.
- Original Message -
From: "Stephen Levinson" <[EMAIL PROTECTED]>
To: "'LOG4J Users Mailing List'" <[EMAIL PROTECTED]>
Sent:
JavaDoc, however, the only problem is with watching a config file for
changes (no Hierarchy object may be passed to the method).
T Master.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
PropertyConfigurator.configAndWatch(filename).
Will this reload the file details into the correct Hierarchy? If not, must
I extend BasicConfigurator and implement it myself?
T Master
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
97 matches
Mail list logo