view libpurple/plugins/mono/api/Debug.cs @ 21876:2ca7a3d28186

merge of '0bab002372d4ff0eac85fc22d99e014cd044b900' and 'f60024a049490db3b4b14922c237f7bc7c140045'
author Richard Laager <rlaager@wiktel.com>
date Tue, 18 Dec 2007 18:18:31 +0000
parents 93bfbda79bf6
children
line wrap: on
line source

using System;
using System.Runtime.CompilerServices;

namespace Purple
{
	public class Debug
	{
		public static int ALL = 0;
		public static int MISC = 1;
		public static int INFO = 2;
		public static int WARNING = 3;
		public static int ERROR = 4;
		public static int FATAL = 5;
		
		[MethodImplAttribute(MethodImplOptions.InternalCall)]
		extern private static void _debug(int type, string cat, string str);
		
		public static void debug(int type, string cat, string format)
		{
			_debug(type, cat, format);
		}
		
		public static void debug(int type, string cat, string format, params object[] args)
		{
			_debug(type, cat, String.Format(format, args));
		}
	}
}