loggers.BaseLogger | +--loggers.DBLogger
Method Summary | |
public any |
init([any firewallInstance])
|
public string |
getDatasourceName()
Returns the name of the datasource passed into setDatasource |
public string |
getDatasourceType()
Returns the database type passed into setDatasource |
public BaseLogReader |
getLogReader()
I return the log reader |
public string |
getStorageDescription()
Returns a description of where the data is stored, eg datasource name. |
public boolean |
hasLogReader()
If this logger has an associated log reader, return true |
public boolean |
isPurgeable()
Tells if the logger is purgeable by calling purgeLogs |
public boolean |
isViewable()
If the log is viewable such as a file or DB return true, if not (email, or IM) return false. |
public void |
logRequest(numeric level, [any filter], [variablename type="inspectRequest"], [string message=""], [string detail=""])
|
public void |
purgeLogs([any days="0"])
Purges or deletes logs older the the specified number of days |
public void |
setDatasource(any datasource, [any username=""], [any password=""], [any dbtype=""])
Sets the datasource name. |
Methods inherited from loggers.BaseLogger |
logOnlyBlocked,
setLogOnlyBlocked,
setEscapeMessage,
getDescription,
getConfigurables,
escapesMessage,
getName,
setVerbose,
isVerbose
|
Method Detail |
public string getDatasourceName()
public string getDatasourceType()
public BaseLogReader getLogReader()
public string getStorageDescription()
public boolean hasLogReader()
public any init([any firewallInstance])
[any firewallInstance]
public boolean isPurgeable()
public boolean isViewable()
public void logRequest(numeric level, [any filter], [variablename type="inspectRequest"], [string message=""], [string detail=""])
numeric level
[any filter]
- a Filter object[variablename type="inspectRequest"]
[string message=""]
[string detail=""]
public void purgeLogs([any days="0"])
[any days="0"]
public void setDatasource(any datasource, [any username=""], [any password=""], [any dbtype=""])
any datasource
- The name of a valid datasource[any username=""]
- Optional, the datasource username[any password=""]
- Optional, the datasource password[any dbtype=""]
- mysql, sqlserver, or derby