Writes a new log entry as defined in the VGLogEntry object to the log stored in the repository represented by the specified VGSecurityRuntime object.

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

Syntax

C#
public static void Write(
	VGSecurityRuntime runtime,
	VGLogEntry log
)
Visual Basic
Public Shared Sub Write ( 
	runtime As VGSecurityRuntime,
	log As VGLogEntry
)

Parameters

runtime
Type: Novalys.VisualGuard.Security..::..VGSecurityRuntime
a VGSecurityRuntime object representing the repository in which the log will be stored.
log
Type: Novalys.VisualGuard.Security.Logging..::..VGLogEntry
A VGLogEntry object defining the content of the message.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionruntime or log is null
System..::..FormatExceptionthe format specified in the title or in the message of the log cannot be formatted

See Also