FTGate.Framework.Log

This class allows the user to write to the FTGate Log file and monitor.

 

Methods

public void Write(LogType type,string comment)

type – Logging level of the comment (see WebAdmin/Configuration/Logging)
comment – The text comment that will be used in the log entry

 

Example

Log log = new Log();
log.Write(LogType.Debug, "Debug comment");
log.Write(LogType.Normal, "Normal comment");
log.Write(LogType.Warning, "Warning comment");
log.Write(LogType.Critical, "Critical comment");