Sha256: 31723c4052ec014483abfa5cbae7e0ff715a3b80c53dd91fa427adda95b38697

Contents?: true

Size: 1.64 KB

Versions: 72

Compression:

Stored size: 1.64 KB

Contents

/*
 ============================================================================
 Author	    : Dmitry Moskalchuk
 Version	: 1.5
 Copyright  : Copyright (C) 2008 Rhomobile. All rights reserved.

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ============================================================================
 */
package com.rhomobile.rhodes;

public class Logger {

	// Errors
	public native static void E(String tag, String msg);
	// Warnings
	public native static void W(String tag, String msg);
	// Info
	public native static void I(String tag, String msg);
	// Debug
	public native static void D(String tag, String msg);
	// Trace
	public native static void T(String tag, String msg);
	
	public static void E(String tag, Throwable e) {
		E(tag, e.getMessage());
	}
	
	public static void W(String tag, Throwable e) {
		W(tag, e.getMessage());
	}
	
	public static void I(String tag, Throwable e) {
		I(tag, e.getMessage());
	}
	
	public static void D(String tag, Throwable e) {
		D(tag, e.getMessage());
	}
	
	public static void T(String tag, Throwable e) {
		T(tag, e.getMessage());
	}
	
}

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
rhodes-2.4.0 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.4.0.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.4.0.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.2 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.2.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.2.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.1.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.0 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.0.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.0.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.3.0.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.6 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.6.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.5 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.5.beta.3 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.5.beta.2 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.5.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.4.beta.1 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java
rhodes-2.2.3 platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java