• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding log4j

 
muthu bharathi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is SMTPAppender for such purpose.
 
muthu bharathi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you clarify your needs?
 
muthu bharathi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The log4j documentation gives you a pretty good start, what specifically do you need to know that is not covered in there?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic