Exemple #1
0
 internal LoggingEventArgs(DDM_LOG_LEVEL level, string source, string function, string logStr)
 {
     Level     = level;
     Source    = source;
     Function  = function;
     LogString = logStr;
 }
Exemple #2
0
 /// <inheritdoc/>
 public virtual void OnLogging(DDM_LOG_LEVEL level, string source, string function, string errStr)
 {
 }
Exemple #3
0
 void IDataDistributionCallbackLow.OnLogging(IntPtr IDataDistribution_nativePtr, DDM_LOG_LEVEL level, string source, string function, string errStr)
 {
     this.OnLogging(level, source, function, errStr);
     LoggingEvent?.Invoke(this, new LoggingEventArgs(level, source, function, errStr));
 }
        public override void OnLogging(DDM_LOG_LEVEL level, string source, string function, string errStr)
        {
            base.OnLogging(level, source, function, errStr);

            Console.WriteLine("Timestamp: {0} Source: {1} Function: {2} - {3}", DateTime.Now, source, function, errStr);
        }
Exemple #5
0
 void dataDistributionLoggingCb(IntPtr opaque, DDM_LOG_LEVEL level, [In][MarshalAs(UnmanagedType.LPStr)] string source, [In][MarshalAs(UnmanagedType.LPStr)] string function, [In][MarshalAs(UnmanagedType.LPStr)] string errorStr)
 {
     IDataDistributionCallback_cbs.OnLogging(opaque, level, source, function, errorStr);
 }
Exemple #6
0
 /// <summary>
 /// Converts enum in string
 /// </summary>
 /// <param name="level"><see cref="DDM_LOG_LEVEL"/></param>
 /// <returns>Numeric string representation</returns>
 public static string ToIntString(this DDM_LOG_LEVEL level)
 {
     return(ToString((int)level));
 }