Writes a new log entry as defined in the specified VGLogEntry object to the log stored in the default Visual Guard repository.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public static void WriteLog(
	VGLogEntry log
)
Visual Basic
Public Shared Sub WriteLog ( 
	log As VGLogEntry
)

Parameters

log
Type: Novalys.VisualGuard.Security.Logging..::..VGLogEntry
A VGLogEntry object defining the content of the message.

Remarks

The message will be written in the log of the repository only when the log is enabled for this repository.

For more information about Logging features, see Using Visual Guard Logging features.

Exceptions

ExceptionCondition
System..::..FormatExceptionthe format specified in the title or in the message of the log is not valid.
System..::..ArgumentNullExceptionlog is null

See Also