/*
 * Copyright (C)  Tony Green, Litepal Framework Open Source Project
 *
 * 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 org.litepal.util;

import android.util.Log;

public final class LogUtil {

	public static void d(String tagName, String message) {
		Log.d(tagName, message);
	}
	
	public static void e(String tagName, Exception e){
		e.printStackTrace();
	}

}

@@ -710,16 +710,135 @@
 gUtil %7B%0A
+%09%0A%09public static final int DEBUG = 2;%0A%09%0A%09public static final int ERROR = 5;%0A%09%0A%09public static final int LEVEL = ERROR;%0A%09
 %0A%09public
@@ -886,16 +886,41 @@
 sage) %7B%0A
+%09%09if (LEVEL %3E= DEBUG) %7B%0A%09
 %09%09Log.d(
@@ -938,16 +938,20 @@
 ssage);%0A
+%09%09%7D%0A
 %09%7D%0A%09%0A%09pu
@@ -1005,31 +1005,73 @@
 %7B%0A%09%09
-e.printStackTrace();
+if (LEVEL %3E= ERROR) %7B%0A%09%09%09Log.e(tagName, e.getMessage(), e);%0A%09%09%7D
 %0A%09%7D%0A%0A%7D
-%0A

Modify the log level.