CSharpRTMP.Common.Logger.WARN C# (CSharp) Method

WARN() public static method

public static WARN ( string format ) : void
format string
return void
        public static void WARN(string format, params object[] args)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
			Log (string.Format(format,args));
		}

Usage Example

Beispiel #1
0
 public void Shrink(uint rest)
 {
     if (rest > BaseStream.GetAvaliableByteCounts())
     {
         Logger.WARN("rest {0} more upper than available {1} bytes", rest, BaseStream.GetAvaliableByteCounts());
         rest = (uint)BaseStream.GetAvaliableByteCounts();
     }
     BaseStream.SetLength(BaseStream.Position + rest);
 }