Fórumok
how to Capture all error message in Log file and send the Log file by email
Manish Yadav, módosítva 11 év-val korábban
how to Capture all error message in Log file and send the Log file by email
Expert Bejegyzések: 493 Csatlakozás dátuma: 2012.05.26. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: how to Capture all error message in Log file and send the Log file by e
Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: how to Capture all error message in Log file and send the Log file by e
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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.