It's not a secret anymore!*
The moose likes Other Open Source Projects and the fly likes regarding log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "regarding log4j" Watch "regarding log4j" New topic
Author

regarding log4j

muthu bharathi
Ranch Hand

Joined: Dec 10, 2008
Posts: 97
Hi,

can you suggest me how can i use the log4j in very effective manner(for ex: mail sent while error is occur)?


thats like give me some examples...


--
regards,
M. Bharathi

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

There is SMTPAppender for such purpose.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
muthu bharathi
Ranch Hand

Joined: Dec 10, 2008
Posts: 97
Hi Freddy ,

Thanks for your immediate response.

i want to know what are the effective things we have to do in the java application by using java.. please give me suggestion and sample output files...



--
regards,
M. Bharathi
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Can you clarify your needs?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
muthu bharathi
Ranch Hand

Joined: Dec 10, 2008
Posts: 97
Hi Martijn ,

Already i have using log4j and i have the service for log4j and is used in my framework. now i want to remodified my service. that means i plan to change the valuable/effective log file for my projects, because the old one contains only the basic things.

For example, i plan to add smtp appender to send e-mail when error occurs. thats like i need some more guidance in log4j. what are all the advanced features or please guide me log file should be like this/ give an example log file.


This is my need...

--
with regards,
M. Bharathi
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

The log4j documentation gives you a pretty good start, what specifically do you need to know that is not covered in there?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding log4j
 
Similar Threads
please help quickly in log4j with servlets
Log4J Tutorial
log4j vs JDK logging
Alternate to System.out.println
log4j:WARN No appenders could be found for logger (log4jexample.LogExample).