Android Logger Bridge

android-logger-bridge enables using Android Log util on non Android envinronment. If this library runs on Android, it outputs to logcat. If not, it outputs to stdout.

License

License

GroupId

GroupId

org.komamitsu
ArtifactId

ArtifactId

android-logger-bridge
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Android Logger Bridge
android-logger-bridge enables using Android Log util on non Android envinronment. If this library runs on Android, it outputs to logcat. If not, it outputs to stdout.
Project URL

Project URL

https://github.com/komamitsu/android-logger-bridge
Source Code Management

Source Code Management

https://github.com/komamitsu/android-logger-bridge

Download android-logger-bridge

How to add to project

<!-- https://jarcasting.com/artifacts/org.komamitsu/android-logger-bridge/ -->
<dependency>
    <groupId>org.komamitsu</groupId>
    <artifactId>android-logger-bridge</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.komamitsu/android-logger-bridge/
implementation 'org.komamitsu:android-logger-bridge:0.0.2'
// https://jarcasting.com/artifacts/org.komamitsu/android-logger-bridge/
implementation ("org.komamitsu:android-logger-bridge:0.0.2")
'org.komamitsu:android-logger-bridge:jar:0.0.2'
<dependency org="org.komamitsu" name="android-logger-bridge" rev="0.0.2">
  <artifact name="android-logger-bridge" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.komamitsu', module='android-logger-bridge', version='0.0.2')
)
libraryDependencies += "org.komamitsu" % "android-logger-bridge" % "0.0.2"
[org.komamitsu/android-logger-bridge "0.0.2"]

Dependencies

provided (1)

Group / Artifact Type Version
com.google.android : android jar 4.1.1.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

android-logger-bridge

android-logger-bridge enables using Android Log util on non Android envinronment. If this library runs on Android, it outputs to logcat. If not, it outputs to stdout.

Requirement

Android OS >= 2.2

Usage

If you're using maven, add the folloing directive:

<dependencies>
  <dependency>
	<groupId>org.komamitsu</groupId>
	<artifactId>android-logger-bridge</artifactId>
	<version>0.0.1</version>
  </dependency>
</dependencies>

If not, download android-logger-bridge-x.x.x.jar from http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22android-logger-bridge%22.

Next, import org.komamitsu.android.util.Log.

import org.komamitsu.android.util.Log;

public class FooActivity {
        private static final String TAG = FooActivity.class.getSimpleName();

             :

        public void onBarEvent() {
            Log.d(TAG, "onBarEvent: start");
                    
                :
                
            try {
                    
                :

            }
            catch (IOException e) {
                Log.e(TAG, "API call error", e);

                    :

Versions

Version
0.0.2
0.0.1