Re: Logger class

2002-03-26 Thread T Master
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

Re: support of file.encoding system property

2002-03-25 Thread T Master
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

Re: Not sure if this has been change

2002-03-18 Thread T Master
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

Re: Turning off my logging programmatically

2002-03-14 Thread T Master
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

Re: Turning off my logging programmatically

2002-03-14 Thread T Master
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"

Re: Turning off my logging programmatically

2002-03-14 Thread T Master
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

Re: Unable to find class Logger in log4j 1.3 version any help

2002-03-13 Thread T Master
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

Re: [The plot continues] org/apache/log4j/Logger NoClassDefFoundError withversion 1.1.3

2002-02-28 Thread T Master
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

Log4j 1.2 and JBoss. backward compatibilty problem

2002-02-28 Thread T Master
, 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

Re: jboss 2.4.0 and 3.0beta2 and log4j v1.2 beta2 problems

2002-02-28 Thread T Master
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

jboss 2.4.0 and 3.0beta2 and log4j v1.2 beta2 problems

2002-02-28 Thread T Master
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]>

Re: [The plot continues] org/apache/log4j/Logger NoClassDefFoundError with version 1.1.3

2002-02-28 Thread T Master
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..] --

Re: org/apache/log4j/Logger NoClassDefFoundError with version 1.1.3

2002-02-27 Thread T Master
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

Re: How may I catch an IOException when there disk space has run out for a FileAppender?

2002-02-27 Thread T Master
]> 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

Re: How may I catch an IOException when there disk space has run out for a FileAppender?

2002-02-27 Thread T Master
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

Re: change log file at runtime

2002-02-27 Thread T Master
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_

Re: Use of PropertyConfigurator

2002-02-20 Thread T Master
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]&

Re: Use of PropertyConfigurator

2002-02-20 Thread T Master
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

Re: Multiple FileAppenders in one class

2002-02-20 Thread T Master
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

Re: Changes/Features of 1.2(beta)

2002-02-13 Thread T Master
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 ---

Re: Changes/Features of 1.2(beta)

2002-02-13 Thread T Master
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

Re: double logs

2002-02-13 Thread T Master
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

Re: double logs

2002-02-13 Thread T Master
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

Re: Use of ErrorHandler in appenders

2002-02-13 Thread T Master
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

FallbackErrorHandler.setBackupAppender(null) throws NullPointerException

2002-02-12 Thread T Master
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

Re: Help with writing on File and Socket Servers

2002-02-12 Thread T Master
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

comment on ErrorHandler interface

2002-02-12 Thread T Master
. 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]>

Re: compile error upgrading from log4j v1.2 alpha 7 to v1.2 beta 2

2002-02-12 Thread T Master
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: > > ===

Re: Getting rid of the log4j:Error Could not connect to remote log4j server at [localhost]

2002-02-08 Thread T Master
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

Re: How may I catch an IOException when there disk space has run out for a FileAppender?

2002-01-18 Thread T Master
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

Re: How may I catch an IOException when there disk space has run out for a FileAppender?

2002-01-18 Thread T Master
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

How may I catch an IOException when there disk space has run out for a FileAppender?

2002-01-17 Thread T Master
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

Re: FileAppender and file Location & getOptions

2002-01-17 Thread T Master
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

Re: FileAppender and file Location & getOptions

2002-01-17 Thread T Master
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

Re: send e-mal and to a pager

2002-01-17 Thread T Master
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

Re: Clever Logging?

2002-01-14 Thread T Master
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

Re: multiple components using log4j causes problems

2002-01-11 Thread T Master
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

Re: FileAppender support for file.encoding property

2002-01-09 Thread T Master
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

FileAppender support for file.encoding property

2002-01-09 Thread T Master
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]>

Re: org.apache.log4j.helpers.AppenderAttachableImpl.addAppender(Appender newAppender)

2002-01-09 Thread T Master
- 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

org.apache.log4j.helpers.AppenderAttachableImpl.addAppender(Appender newAppender)

2002-01-09 Thread T Master
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]>

Re: How to disable a category?

2002-01-08 Thread T Master
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

Re: How to disable a category?

2002-01-08 Thread T Master
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

Re: Is log4j already configured?

2002-01-08 Thread T Master
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

Closed Appender after changing file path.

2002-01-08 Thread T Master
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]>

Re: What is the name of a FileAppender when constructed dynamically?

2002-01-08 Thread T Master
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

What is the name of a FileAppender when constructed dynamically?

2002-01-07 Thread T Master
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]>

Changing FileAppender filepath dynamically

2002-01-04 Thread T Master
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

Re: Turning a Category On/Off

2002-01-04 Thread T Master
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

Re: Turning a Category On/Off

2002-01-04 Thread T Master
: ** 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

Turning a Category On/Off

2002-01-04 Thread T Master
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]>

Re: Unicode output to FileAppender - how to view file?

2001-12-20 Thread T Master
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

Re: Unicode output to FileAppender - how to view file?

2001-12-20 Thread T Master
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

Unicode output to FileAppender - how to view file?

2001-12-20 Thread T Master
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]>

Re: Loggin exceptions

2001-12-12 Thread T Master
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:

Re: FileAppender.setFile(newFile) not working?

2001-12-10 Thread T Master
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? >

FileAppender.setFile(newFile) not working?

2001-12-10 Thread T Master
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

Re: log4j:ERROR Attempted to append to closed appender named [null].

2001-12-07 Thread T Master
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]. > >

log4j:ERROR Attempted to append to closed appender named [null].

2001-12-07 Thread T Master
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]>

How do I supress Log4J:WARN messages?

2001-12-05 Thread T Master
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]>

Re: specify the file appender's directory

2001-12-04 Thread T Master
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

RolloingFileAppender - setMaxBackupIndex

2001-12-03 Thread T Master
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

Re: Is Category.getPriority() supposed return null if Priority is not explicitly set??

2001-11-30 Thread T Master
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.

Re: Is Category.getPriority() supposed return null if Priority is not explicitly set??

2001-11-30 Thread T Master
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

Re: how to disable a category from its parent

2001-11-27 Thread T Master
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

how to disable a category from its parent

2001-11-27 Thread T Master
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]

Re: Auto-reconfiguration?

2001-11-14 Thread T Master
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

extra properties

2001-10-25 Thread T Master
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]

conversion pattern and date format error

2001-10-24 Thread T Master
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.

Re: Log4J Properties file... should you only ever have one?

2001-10-22 Thread T Master
- 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

Re: How to change logging severity on the fly.

2001-10-19 Thread T Master
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

Re: Re: Null Priority obtained from Category. Bug?

2001-10-19 Thread T Master
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

Re: Null Priority obtained from Category. Bug?

2001-10-18 Thread T Master
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

Re: removing a Category...

2001-10-18 Thread T Master
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

Re: Null Priority obtained from Category. Bug?

2001-10-18 Thread T Master
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

Re: removing a Category...

2001-10-18 Thread T Master
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

removing a Category...

2001-10-18 Thread T Master
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

Null Priority obtained from Category. Bug?

2001-10-17 Thread T Master
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]

Re: The best way?!

2001-10-17 Thread T Master
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

Re: UTC Timestamp

2001-10-16 Thread T Master
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

Re: UTC Timestamp

2001-10-16 Thread T Master
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

Re: Configuration question

2001-10-16 Thread T Master
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 :)

Are Appenders static like Category ?

2001-10-10 Thread T Master
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]

Re: properties file key names

2001-10-03 Thread T Master
;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

Re: RE: SNMP appender?

2001-10-03 Thread T Master
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,

properties file key names

2001-10-03 Thread T Master
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

properties file format

2001-09-28 Thread T Master
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

Re: Storing hierarchies in log4j.properties

2001-09-20 Thread T Master
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

Storing hierarchies in log4j.properties

2001-09-20 Thread T Master
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]

Re: socket appender

2001-09-20 Thread T Master
- 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

Re: socket appender

2001-09-20 Thread T Master
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

Possible to modify Appender patternLayout conversionPattern dynamically?

2001-09-20 Thread T Master
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

NTEventAppender

2001-09-20 Thread T Master
What is the server argument for in NTEventAppender? Example value? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Disabling logging from a Configuration File

2001-09-20 Thread T Master
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

Re: Disabling logging from a Configuration File

2001-09-20 Thread T Master
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:

How to create a hierarchy of Category objects?

2001-09-19 Thread T Master
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

PropertyConfigure.configureAndWatch(filename) and Hierarchy

2001-09-19 Thread T Master
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