FuseGuard Logo

fuseguard.components.loggers
Component CFMailDigestLogger

loggers.BaseLogger
  |
  +--loggers.CFMailDigestLogger

Sends log summary emails in batches at a specified interval. Please ensure that you have specified a SMTP server in the CF admin or in your Application.cfc. This logger also requires that the DBLogger is enabled, since it queries the database to fetch logs.

Method Summary
public any init([any firewallInstance])
public string encodeHTML([any str])
public array getConfigurables()
          Returns configurable settings.
public void processRequestComplete([any firewallInstance])
          Called when a request finished processing
public void setFromAddress(string email)
public void setInterval([numeric interval])
          Set the interval at which the scheduled task runs
public void setSMTPServer(string smtpServer, [string smtpUsername=""], [string smtpPassword=""])
          Set the SMTP Server username, and password

Methods inherited from loggers.BaseLogger
logOnlyBlocked, getStorageDescription, hasLogReader, setLogOnlyBlocked, isViewable, setEscapeMessage, getDescription, escapesMessage, getName, isPurgeable, logRequest, setVerbose, isVerbose, purgeLogs
 

Method Detail

encodeHTML

public string encodeHTML([any str])
Parameters:
[any str]

getConfigurables

public array getConfigurables()
Returns configurable settings.


init

public any init([any firewallInstance])
Parameters:
[any firewallInstance]

processRequestComplete

public void processRequestComplete([any firewallInstance])
Called when a request finished processing

Parameters:
[any firewallInstance] - The firewall instance

setFromAddress

public void setFromAddress(string email)
Parameters:
string email

setInterval

public void setInterval([numeric interval])
Set the interval at which the scheduled task runs

Parameters:
[numeric interval] - seconds

setSMTPServer

public void setSMTPServer(string smtpServer, [string smtpUsername=""], [string smtpPassword=""])
Set the SMTP Server username, and password

Parameters:
string smtpServer - Host Name or IP Address of SMTP Server
[string smtpUsername=""] - User Name for SMTP Server
[string smtpPassword=""] - Password for SMTP Server