Leadtools.Logging Namespace > Logger Class : Log Method |
function Leadtools.Logging.Logger.Log( entry )
public: void Log( ILogEntry^ entry )
' ' The log should already be configured with the correct logging channels. ' Private Sub Log(ByVal logger As 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
// // 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); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2