Bug 28059 - DOMConfigurator.configure(java.io.InputStream)
Summary: DOMConfigurator.configure(java.io.InputStream)
Status: REOPENED
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Configurator (show other bugs)
Version: 1.2
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-30 18:26 UTC by Sean C. Sullivan
Modified: 2012-10-25 17:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean C. Sullivan 2004-03-30 18:26:11 UTC
class: org.apache.log4j.xml.DOMConfigurator

Please add this method:

public static void configure(java.io.InputStream)
Comment 1 Jacob Kjome 2004-03-31 05:00:48 UTC
Can you explain why configure(java.new.URL) doesn't work for you?  If you can
get an InputStream, you can get a URL, at least if you are loading your config
file off the classloader.  What specific case do you have that doesn't work with
the existing functionality?

Jake
Comment 2 Jacob Kjome 2004-03-31 05:02:48 UTC
...of course I meant java.net.URL

Jake
Comment 3 Yoav Shapira 2004-12-14 22:08:44 UTC
This is being discussed at the moment on log4j-dev, for the new 
JoranConfigurator and for PropertyConfigurator, though not for the deprecated 
DOMConfigurator.  Please feel free to chime in to the list's discussion and 
explain your use-case there.

In the future, please provide an explanation of why you need a particular 
method when you open a Bugzilla item for it.  Alternatively, you can discuss 
you needs first on the mailing list(s).
Comment 4 hanshan 2012-10-25 17:00:29 UTC
class: org.apache.log4j.xml.DOMConfigurator

Please add this method:

public static void configure(java.io.InputStream)


because I want to load log4j.xml from a library jar in my war app.
this log4j.xml will be served as various config example and also be used as template of my log configuration file.