/*
* Copyright (C) 2010 Cyril Mottier (http://www.cyrilmottier.com)
*
* 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 greendroid.util;
@SuppressWarnings("all")
public class Config {
private Config() {
}
private static final int GD_LOG_LEVEL_INFO = 3;
private static final int GD_LOG_LEVEL_WARNING = 2;
private static final int GD_LOG_LEVEL_ERROR = 1;
private static final int GD_LOG_LEVEL_NONE = 0;
/**
* Set this flag to {@link Config#GD_LOG_LEVEL_NONE} when releasing your
* application in order to remove all logs generated by GreenDroid.
*/
private static final int GD_LOG_LEVEL = GD_LOG_LEVEL_NONE;
public static final boolean GD_INFO_LOGS_ENABLED = (GD_LOG_LEVEL == GD_LOG_LEVEL_INFO);
public static final boolean GD_WARNING_LOGS_ENABLED = GD_INFO_LOGS_ENABLED
|| (GD_LOG_LEVEL == GD_LOG_LEVEL_WARNING);
public static final boolean GD_ERROR_LOGS_ENABLED = GD_WARNING_LOGS_ENABLED || (GD_LOG_LEVEL == GD_LOG_LEVEL_ERROR);
}