/**
 * Copyright 2012 OpenKit
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.openkit;

import java.util.Locale;

import android.util.Log;

public class OKLog {
	static final boolean VERBOSE = true;
	
	public static void d(String format, Object... args) {
		Log.d("OpenKit", String.format(Locale.getDefault(), format, args));
	}

	public static void v(String format, Object... args) {
		if (VERBOSE) {
			Log.v("OpenKit", String.format(Locale.getDefault(), format, args));
		}
	}

}

@@ -726,10 +726,9 @@
 ue;%0A
-%09
 %0A
+
 %09pub
@@ -778,16 +778,16 @@
 args) %7B%0A
-
 %09%09Log.d(
@@ -852,16 +852,357 @@
 ));%0A%09%7D%0A%0A
+%09/* Have to add versions without multiple args because there are lots of log statements that use%0A%09 * string casting and sometimes the String.Format throws an exception.%0A%09 */%0A%09public static void d(String message) %7B%0A%09%09Log.d(%22OpenKit%22, message);%0A%09%7D%0A%0A%09public static void v(String message) %7B%0A%09%09if (VERBOSE) %7B%0A%09%09%09Log.v(%22OpenKit%22,message);%0A%09%09%7D%0A%09%7D%0A%0A
 %09public 

add versions of OkLog that don't format string and parameters