Basically,my requirement is that I have to log application related errors(let say log.error("") to a log file in my java application.
another log statements(let say log.warn("")) to SMTP mail server. Also the important thing is that, I have to to send email only once after the program execution completes. It should not be like for every log.warn().
I have very little knowledge on log4j.
can you please help me configure the log4j properties. I will be using SMTP server.
sample config file for this requirement exactly is really appreciated.
Thanks