Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

log4j help

Thread view: 
buu - 21 Aug 2007 06:17 GMT
I'm a newbie in log4j...
I would like to have 2 files for logging.
one for errors, another for information.

how could I make it? every time I start logger, it appends data to both
files (I created 2 loggers and 2 appenders, but it's still the same)
Jan Thomä - 21 Aug 2007 21:45 GMT
Hi,

> I would like to have 2 files for logging.
> one for errors, another for information.
>
> how could I make it? every time I start logger, it appends data to both
> files (I created 2 loggers and 2 appenders, but it's still the same)

It would have helped a great deal if you had added your current log4j
configuration (http://catb.org/~esr/faqs/smart-questions.html#beprecise).

From what i read i assume you have configured the appenders in a wrong way,
but without seeing your configuration there is no way to tell.

Best regards,
Jan
Signature

_________________________________________________________________________
insOMnia - We never sleep...
http://www.insOMnia-hq.de

Kevin Sandal - 21 Aug 2007 21:47 GMT
> I'm a newbie in log4j...
> I would like to have 2 files for logging.
> one for errors, another for information.
>
> how could I make it? every time I start logger, it appends data to both
> files (I created 2 loggers and 2 appenders, but it's still the same)

Providing a snippet, or two, of code would help isolate the issue. That, and
the version you are using. Oh, also the properties file you are using (if
any).

For what it is worth, Log4j caused me untold headaches. To this day I have
an error. Thankfully it does not stop logging--just generates an error at
the top.

Kevin Sandal


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.