示例#1
0
        public static void Log(NSLogLevel level, String message)
        {
            if (level == (NSLogLevel.Debug & level))
            {
                logger.Debug(message);
            }

            if (level == (NSLogLevel.Error & level))
            {
                logger.Error(message);
            }

            if (level == (NSLogLevel.Fatal & level))
            {
                logger.Fatal(message);
            }

            if (level == (NSLogLevel.Info & level))
            {
                logger.Info(message);
            }

            if (level == (NSLogLevel.Warn & level))
            {
                logger.Warn(message);
            }
        }
示例#2
0
        public static void Log(NSLogLevel level, String message)
        {
            if (level == (NSLogLevel.Debug & level))
                logger.Debug (message);

            if (level == (NSLogLevel.Error & level))
                logger.Error (message);

            if (level == (NSLogLevel.Fatal & level))
                logger.Fatal (message);

            if (level == (NSLogLevel.Info & level))
                logger.Info (message);

            if (level == (NSLogLevel.Warn & level))
                logger.Warn (message);
        }