com.genexus.AndroidLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxandroid Show documentation
Show all versions of gxandroid Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
package com.genexus;
public class AndroidLog
{
// log levels
static final int OFF = 0;
static final int ERROR = 1;
static final int WARNING = 2;
static final int INFO = 3;
static final int DEBUG = 4;
public static int LEVEL = ERROR;
public static void debug(String message)
{
if (LEVEL>=DEBUG) System.out.println(message);
}
public static void warning(String message)
{
if (LEVEL>=WARNING) System.out.println(message);
}
public static void error(String message)
{
if (LEVEL>=ERROR) System.err.println(message);
}
public static void info(String message)
{
if (LEVEL>=INFO) System.out.println(message);
}
/*static void v(String message)
{
if (LEVEL<=VERBOSE) System.out.println(message);
}*/
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy