CSharpRTMP.Common.Logger.FATAL C# (CSharp) Метод

FATAL() публичный статический Метод

public static FATAL ( string format ) : void
format string
Результат void
	    public static void FATAL(string format, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Red;
			Log (string.Format(format,args));
            Console.ForegroundColor = ConsoleColor.White;
            var frames = new StackTrace(1, true).GetFrames();
            for (var i = 0; i < frames.Length && i < 3; i++)
            {
                Log(frames[i].ToString());
            }
		}
		public static void ASSERT(string format,params object[] args){

Usage Example

Пример #1
0
        public bool SeekBehind(long count)
        {
            if (count < 0)
            {
                Logger.FATAL("Invali count");
                return(false);
            }

            if (DataStream.Position < count)
            {
                Logger.FATAL("End of file will be reached");
                return(false);
            }
            try
            {
                DataStream.Seek(-count, SeekOrigin.Current);
            }
            catch (Exception ex)
            {
                Logger.FATAL("Unable to seek behind {0} bytes {1}", count, ex.Message);
                return(false);
            }

            return(true);
        }
All Usage Examples Of CSharpRTMP.Common.Logger::FATAL