-
sullis added jeromatron to the smtphandler project.
2009-08-28 07:21:45 UTC by sullis
-
One more fix, the CyclicBuffer.getLastAndKeepIt() should be like this:
public LogRecord getLastAndKeepIt()
{
if (numElems
2009-06-09 15:10:38 UTC by xmedeko
-
I have even needed to add the source class and method to the subject. So I have made the following patch. One may set subject as
smtphandler.subject = Log message [{0}] at {1}.{2}
and will get subject like "Log message [SEVERE] at org.mypackage.MyClass.myMethod"
the patch of SMTPHandler.sendBuffer():
// subject
if (subject != null) {
try {
LogRecord lastLogRecord...
2009-06-09 13:22:36 UTC by xmedeko
-
Hi, I have made a public class TriggerLevelEvaluator, which has a parameter - level when the isTriggeringRecord returns true. Furthermore, the user may set this level in the logging.properties file. I have just changes the SMTPHandler constructor a little bit:
String strEvaluatorClassName = manager.getProperty(prefix + ".evaluatorClass");
this.setEvaluatorClass(strEvaluatorClassName);.
2009-06-05 13:50:06 UTC by xmedeko
-
This issue was created by mistake.
2009-06-05 13:42:59 UTC by xmedeko
-
Hi,
Hi,
I have made a small change in SMTPHandler.sendBuffer(), so that is somebody uses a string {0} in the subject, e.g.
smtphandler.subject = Log message {0}
then the {0} is replaced by log level of the las log in the cyclic buffer.
// subject
if (subject != null) {
try {
String levelName = cb.getLastAndKeepIt().getLevel().getName();...
2009-06-05 13:41:40 UTC by xmedeko
-
Hi,
Hi,
I have made a small change in SMTPHandler.sendBuffer(), so that is somebody uses a string {0} in the subject, e.g.
smtphandler.subject = Log message {0}
then the {0} is replaced by log level of the las log in the cyclic buffer.
// subject
if (subject != null) {
try {
String levelName = cb.getLastAndKeepIt().getLevel().getName();...
2009-06-05 13:40:28 UTC by xmedeko
-
Whenever you attempt to configure the SMTP handler to use GMail's SMTP server it fails because it requires TLS to be used. I have got this working by amending the SMTPHandler code to set the JavaMail property "mail.smtp.starttls.enable" to "true" in the "sendBuffer" method. I have done this by adding a new property "smtphandler.SMTPHandler.starttls=true" to the logging.properties file.
2009-04-01 01:41:39 UTC by nobody
-
sullis committed patchset 119 of module smtphandler to the smtphandler CVS repository, changing 1 files.
2008-10-05 08:52:08 UTC by sullis
-
sullis committed patchset 118 of module smtphandler to the smtphandler CVS repository, changing 3 files.
2008-10-05 08:37:33 UTC by sullis