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.LoggingAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2017.0.101.17 (2017.0.101.17)
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
Exception | Condition |
---|---|
System..::..ArgumentNullException | runtime or log is null |
System..::..FormatException | the format specified in the title or in the message of the log cannot be formatted |