|
# File log4r/outputter/emailoutputter.rb, line 91
def initialize(_name, hash={})
super(_name, hash)
validate(hash)
@buff = []
begin
@smtp = Net::SMTP.start(*@params)
Logger.log_internal {
"EmailOutputter '#{@name}' running SMTP client on #{@server}:#{@port}"
}
rescue Exception => e
Logger.log_internal (-2) {
"EmailOutputter '#{@name}' failed to start SMTP client!"
}
Logger.log_internal {e}
self.level = OFF
end
end
|