|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.informatica.log.BaseLogger
info.informatica.log.ExtendedLogger
info.informatica.log.MailLogger
public class MailLogger
Mail Logger
| Field Summary |
|---|
| Fields inherited from interface info.informatica.log.Logger |
|---|
LOG_ALERT, LOG_CRIT, LOG_DEBUG, LOG_EMERG, LOG_ERR, LOG_INFO, LOG_NOTICE, LOG_WARNING |
| Constructor Summary | |
|---|---|
MailLogger()
|
|
| Method Summary | |
|---|---|
void |
closeLog()
|
void |
init(String initstr)
Initialize this logger You only need to implement this method if applicable, otherwise if you call it will throw an Exception |
void |
log(String ohost,
String clase,
int level,
String s)
This must be implemented by ExtendedLoggers |
void |
log(String ohost,
String clase,
int level,
Throwable t,
String s)
This must be implemented by ExtendedLoggers |
static void |
send(javax.mail.internet.InternetAddress iaddr,
String addrto,
String cc,
String subj,
String text,
int level)
Sends mail according to the arguments, and sets the priority of the mail according to level Note that currently the iaddr and addrto happen to be the same |
| Methods inherited from class info.informatica.log.ExtendedLogger |
|---|
getExtendedLogger, log, log, log |
| Methods inherited from class info.informatica.log.BaseLogger |
|---|
getLogDate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailLogger()
| Method Detail |
|---|
public void init(String initstr)
throws LogConfigException
ExtendedLoggerYou only need to implement this method if applicable, otherwise if you call it will throw an Exception
init in class ExtendedLoggerinitstr - e-mail address to send the messages
LogConfigException
public void log(String ohost,
String clase,
int level,
String s)
ExtendedLogger
log in class ExtendedLoggerohost - Origin hostclase - Class producing the loglevel - Log levels - Log message
public void log(String ohost,
String clase,
int level,
Throwable t,
String s)
ExtendedLogger
log in class ExtendedLoggerohost - Origin hostclase - Class producing the loglevel - Log levelt - The throwable exception to be loggeds - Log messagepublic void closeLog()
closeLog in class BaseLogger
public static void send(javax.mail.internet.InternetAddress iaddr,
String addrto,
String cc,
String subj,
String text,
int level)
throws IOException,
javax.mail.MessagingException
Note that currently the iaddr and addrto happen to be the same
iaddr - "From:" e-mail addressaddrto - String containing the "To:" addresscc - "CC:" addresssubj - The subjecttext - The body of the log messagelevel - The level of the log
IOException
javax.mail.MessagingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||