Skip to content
Android console implementation
Kotlin Java
Branch: master
Clone or download
Latest commit 40f1d5c Oct 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
console-sample Improve performance in cases console is written from another thread (#18 Oct 21, 2018
console-timber-tree Move completely to Kotlin (#17) Oct 21, 2018
console Enable text selection (#19) Oct 21, 2018
gradle Update project, tweaks (#14) Oct 18, 2018
images Prepare Console release 1.0.0 (#20) Oct 21, 2018
.editorconfig Update project, tweaks (#14) Oct 18, 2018
.gitignore Project setup Nov 15, 2015
.travis.yml Improve performance in cases console is written from another thread (#18 Oct 21, 2018
LICENSE Update readme Nov 16, 2015
README.md Update README.md (#21) Oct 22, 2018
build.gradle Prepare Console release 1.0.0 (#20) Oct 21, 2018
gradle.properties
gradlew
gradlew.bat Project setup Nov 15, 2015
settings.gradle Add console-timber-tree module Feb 19, 2016

README.md

Console

An Android console view, which allows you to log text using static calls, to easily debug your application, whilst avoiding memory leaks.

Build Status Sample License Download Android Arsenal

Usage

Include Console anywhere in your layout:

<com.jraska.console.Console
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

then write to it:

// Writing to console
Console.write("This is cool")
Console.writeLine("More cool")
// Clear it
Console.clear()

Download

Grab via Gradle:

implementation 'com.jraska:console:1.0.0'

Timber Tree

To allow easy integration with Timber

Usage

// In your Application or wherever you register your trees
Timber.plant(ConsoleTree())

// This will be written to your in-app console view
Timber.d("Hello Console")

// In case you want to customize
val consoleTree = ConsoleTree.Builder()
        .debugColor(Color.GRAY)
        // ...
        .build()
Timber.plant(consoleTree)

Gradle:

implementation 'com.jraska:console-timber-tree:1.0.0'

License

Copyright 2015 Josef Raska

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.
You can’t perform that action at this time.