Foros de discusión
how to Capture all error message in Log file and send the Log file by email
Manish Yadav, modificado hace 11 años.
how to Capture all error message in Log file and send the Log file by email
Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
we have production environment in red-hat. How to Capture all error message in Log file and send the Log file by email??
Do we need shell script or java scheduler or by any other way we can achieve .
if anybody have sample code please share
Do we need shell script or java scheduler or by any other way we can achieve .
if anybody have sample code please share
David H Nebinger, modificado hace 11 años.
RE: how to Capture all error message in Log file and send the Log file by e
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Scanning the log file may be hit or miss, and relying on that is a poor design for notifying of errors.
For our enterprise portlets, we specifically implement appropriate alert processes on failures. When a failure occurs within our portlets, we invoke the code to send an alert. In our case we're sending SNMP traps to a SiteScope server, but it just as easily could send an email w/ the failure info.
For our enterprise portlets, we specifically implement appropriate alert processes on failures. When a failure occurs within our portlets, we invoke the code to send an alert. In our case we're sending SNMP traps to a SiteScope server, but it just as easily could send an email w/ the failure info.
Hitoshi Ozawa, modificado hace 11 años.
RE: how to Capture all error message in Log file and send the Log file by e
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Just use SMTPAppender
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
But, as David replied, we usually use SNMP traps.
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
But, as David replied, we usually use SNMP traps.