예제 #1
0
    public PXCMLoggingService CreateLogger(String loggerName)
    {
        PXCMLoggingService logger;
        pxcmStatus         sts = CreateImpl <PXCMLoggingService>(out logger);

        if (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR)
        {
            logger.SetLoggerName(loggerName);
        }
        else
        {
            logger = new PXCMLoggingService(IntPtr.Zero, false);
        }
        return(logger);
    }
예제 #2
0
 public PXCMLoggingService CreateLogger(String loggerName)
 {
     PXCMLoggingService logger;
     pxcmStatus sts = CreateImpl<PXCMLoggingService>(out logger);
     if (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR)
     {
         logger.SetLoggerName(loggerName);
     }
     else
     {
         logger = new PXCMLoggingService(IntPtr.Zero, false);
     }
     return logger;
 }