class EmailHandler extends Handler
Handler that emails each message, separate, to a set of recipients.
args must contain:
- sender: Email address of sender.
- recipients: comma-separated list of email addresses to receive log
messages.
args may also contain:
- smtp.server: hostname of SMTP server. Defaults to "localhost".
- smtp.port: integer port on which SMTP server accepts messages. Defaults
to 25.
- subject: Subject of message. Subject may contain "%l" for the level
name. Defaults to: %l message
- Alphabetic
- By Inheritance
- EmailHandler
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EmailHandler(args: ConfiguredArguments, formatter: Formatter, level: LogLevel)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val formatter: Formatter
The formatter associated with the handler.
The formatter associated with the handler.
- Definition Classes
- EmailHandler → Handler
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val level: LogLevel
The log level associated with the handler.
The log level associated with the handler.
- Definition Classes
- EmailHandler → Handler
- def log(message: String, logMessage: LogMessage): Unit
Log a message, wherever the handler logs its output.
Log a message, wherever the handler logs its output. The method will only be called if the message's level is below or equal to the level associated with the handler.
- message
the already-formatted message to log
- logMessage
the raw log message, in case the pieces are needed
- Definition Classes
- EmailHandler → Handler
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val recipients: Array[Address]
- val sender: InternetAddress
- val smtpPort: Option[Int]
- val smtpServer: String
- val subject: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()