
de.greenrobot.dao.DaoLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greendao Show documentation
Show all versions of greendao Show documentation
greenDAO is a light and fast ORM for Android
The newest version!
/*
* Copyright (C) 2011 Markus Junginger, greenrobot (http://greenrobot.de)
*
* 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 de.greenrobot.dao;
import android.util.Log;
/**
* Internal greenDAO logger class. A wrapper around the Android Log class providing a static Log Tag.
*
* @author markus
*
*/
public class DaoLog {
private final static String TAG = "greenDAO";
public static final int VERBOSE = 2;
public static final int DEBUG = 3;
public static final int INFO = 4;
public static final int WARN = 5;
public static final int ERROR = 6;
public static final int ASSERT = 7;
public static boolean isLoggable(int level) {
return Log.isLoggable(TAG, level);
}
public static String getStackTraceString(Throwable th) {
return Log.getStackTraceString(th);
}
public static int println(int level, String msg) {
return Log.println(level, TAG, msg);
}
public static int v(String msg) {
return Log.v(TAG, msg);
}
public static int v(String msg, Throwable th) {
return Log.v(TAG, msg, th);
}
public static int d(String msg) {
return Log.d(TAG, msg);
}
public static int d(String msg, Throwable th) {
return Log.d(TAG, msg, th);
}
public static int i(String msg) {
return Log.i(TAG, msg);
}
public static int i(String msg, Throwable th) {
return Log.i(TAG, msg, th);
}
public static int w(String msg) {
return Log.w(TAG, msg);
}
public static int w(String msg, Throwable th) {
return Log.w(TAG, msg, th);
}
public static int w(Throwable th) {
return Log.w(TAG, th);
}
public static int e(String msg) {
return Log.w(TAG, msg);
}
public static int e(String msg, Throwable th) {
return Log.e(TAG, msg, th);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy