Log an entry using LogEntry.
using Leadtools;
using Leadtools.Logging;
using Leadtools.Logging.LoggingChannel;
//
// The log should already be configured with the correct logging channels.
//
private void Log(Logger log)
{
LogEntry entry = new LogEntry();
entry.LogType = LogType.Information;
entry.Message = "This is an information message";
entry.CustomInformation.Add("Custom", "My Custom Information");
entry.Source = "TestSource";
log.Log(entry);
}
Imports Leadtools
Imports Leadtools.Logging
Imports Leadtools.Logging.LoggingChannel
'
' The log should already be configured with the correct logging channels.
'
Public Sub Log()
Dim logger As Logger = New Logger()
Dim entry As LogEntry = New LogEntry()
entry.LogType = LogType.Information
entry.Message = "This is an information message"
entry.CustomInformation.Add("Custom", "My Custom Information")
entry.Source = "TestSource"
logger.Log(entry)
End Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document