michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.background.common.log.writers; michael@0: michael@0: import android.util.Log; michael@0: michael@0: /** michael@0: * Log to the Android log. michael@0: */ michael@0: public class AndroidLogWriter extends LogWriter { michael@0: @Override michael@0: public boolean shouldLogVerbose(String logTag) { michael@0: return true; michael@0: } michael@0: michael@0: public void error(String tag, String message, Throwable error) { michael@0: Log.e(tag, message, error); michael@0: } michael@0: michael@0: public void warn(String tag, String message, Throwable error) { michael@0: Log.w(tag, message, error); michael@0: } michael@0: michael@0: public void info(String tag, String message, Throwable error) { michael@0: Log.i(tag, message, error); michael@0: } michael@0: michael@0: public void debug(String tag, String message, Throwable error) { michael@0: Log.d(tag, message, error); michael@0: } michael@0: michael@0: public void trace(String tag, String message, Throwable error) { michael@0: Log.v(tag, message, error); michael@0: } michael@0: michael@0: public void close() { michael@0: } michael@0: }