ICON Software Solutions
Overloaded. Icon.Audit.Log method.

Namespace:  Icon
Assembly:  Icon (in Icon.dll) Version: 2010.3.0.0 (2010.3.0.0)

Syntax

C#
public static void Log(
	string cFile,
	string cUser,
	string cLine,
	bool fDate
)
Visual Basic (Declaration)
Public Shared Sub Log ( _
	cFile As String, _
	cUser As String, _
	cLine As String, _
	fDate As Boolean _
)
Visual C++
public:
static void Log(
	String^ cFile, 
	String^ cUser, 
	String^ cLine, 
	bool fDate
)
J#
public static void Log(
	String cFile,
	String cUser,
	String cLine,
	boolean fDate
)

Parameters

cFile
Type: System..::.String
The directory where the log file is stored. eg c:\masterview\log\
cUser
Type: System..::.String
The description of the log item, usually the user name, or any valid string.
cLine
Type: System..::.String
The text of the log.
fDate
Type: System..::.Boolean
An optional boolean to denote if the date is added to the file name. Default is True.

Remarks

Use this routine to write to an existing log file or create a new log file if one does not exist. The log file takes the form of log_ddMMyyyy - ie there is a log file for each day.

Examples

[Visual Basic] The following is a code example showing writing to the log.
Icon.Audit.Log(AppSettings("log"), "Error", ex.ToString)

See Also