Beispiel #1
0
        public void ActivityLogMessage(string message)
        {
            var log = serviceProvider.GetActivityLog();

            if (log != null)
            {
                if (!ErrorHandler.Succeeded(log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_INFORMATION,
                                                         Info.ApplicationInfo.ApplicationSafeName, message)))
                {
                    Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "Could not log message to activity log: {0}", message));
                }
            }
        }