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: 3.2.912.1 (3.2.912.01)
Syntax
| C# |
|---|
public static void Write( VGSecurityRuntime runtime, VGLogEntry log ) |
| Visual Basic (Declaration) |
|---|
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 |