All Projects → jdsingh → papertrail-timber

jdsingh / papertrail-timber

Licence: MIT license
Pluggable timber tree for Papertrail logging

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to papertrail-timber

timber-junit-rule
A highly configurable JUnit Rule that outputs Timber logs to standard output
Stars: ✭ 42 (+110%)
Mutual labels:  timber, timber-tree
Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (+1030%)
Mutual labels:  logger, timber
Logger
✔️ Simple, pretty and powerful logger for android
Stars: ✭ 13,093 (+65365%)
Mutual labels:  logger, timber
Multiplatform-Log
Kotlin Multi Platform Logger, for android an ios : Logcat & print
Stars: ✭ 49 (+145%)
Mutual labels:  logger, timber
PoShLog
🔩 PoShLog is PowerShell cross-platform logging module. It allows you to log structured event data into console, file and much more places easily. It's built upon great C# logging library Serilog - https://serilog.net/
Stars: ✭ 108 (+440%)
Mutual labels:  logger
forcelog
A structured, extensible logger for Salesforce Apex
Stars: ✭ 37 (+85%)
Mutual labels:  logger
management tools
A collection of scripts and packages to simplify OS X management.
Stars: ✭ 93 (+365%)
Mutual labels:  logger
Lumberjack
Lumberjack - a customisable and extensible file/console logger for Timber
Stars: ✭ 32 (+60%)
Mutual labels:  timber
laravel-telegram-logging
Send logs to Telegram chat via Telegram bot
Stars: ✭ 95 (+375%)
Mutual labels:  logger
wordpress-starter
Timber (Twig) + Parceljs Bundler
Stars: ✭ 19 (-5%)
Mutual labels:  timber
missionlog
🚀 lightweight logging • supports level based filtering and tagging • weighs in at around 500 bytes
Stars: ✭ 19 (-5%)
Mutual labels:  logger
fancy-logs
Print fancy logs to the terminal
Stars: ✭ 14 (-30%)
Mutual labels:  logger
react-native-logger
Async aware logger for react-native with grouping and filter feature
Stars: ✭ 20 (+0%)
Mutual labels:  logger
rest-api-node-typescript
This is a simple REST API with node and express with typescript
Stars: ✭ 154 (+670%)
Mutual labels:  logger
seas-logger
An effective,fast,stable log package for PHP.
Stars: ✭ 46 (+130%)
Mutual labels:  logger
logger
All you need to log with Bref on AWS Lambda.
Stars: ✭ 30 (+50%)
Mutual labels:  logger
puts debuggerer
Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
Stars: ✭ 82 (+310%)
Mutual labels:  logger
Slack-logger-bot
Simple slack bot that can save all of your team messages on your server so that you can still read them even if you exceeds the 10,000 messages in the archive.
Stars: ✭ 47 (+135%)
Mutual labels:  logger
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+690%)
Mutual labels:  logger
handlers
Go's HTTP handlers I use in my projects
Stars: ✭ 53 (+165%)
Mutual labels:  logger

papertrail-timber CircleCI

Timber tree for Papertrail logging.

How to use

Config Papertrail with your papertrail host and port. Application class is good place for this.

Kotlin

val tree = PapertrailTree.Builder()
            .system("Android")
            .program("Papertrail")
            .logger("My-App")
            .host(BuildConfig.PAPERTRAIL_HOST)
            .port(BuildConfig.PAPERTRAIL_PORT)
            // send logs to papertrail with priority Log.INFO and above
            .priority(Log.INFO)
            .build()
            
Timber.plant(tree)

Java

final PapertrailTree tree = new PapertrailTree.Builder()
            .system("Android")
            .program("Papertrail")
            .logger("My-App")
            .host(BuildConfig.PAPERTRAIL_HOST)
            .port(BuildConfig.PAPERTRAIL_PORT)
            // send logs to papertrail with priority Log.INFO and above
            .priority(Log.INFO)
            .build()
            
Timber.plant(tree)

Once this setup is done, all Timber logs will be sent to Papertrail.

Download

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.jdsingh:papertrail-timber:1.0.3'
}

Proguard

consumer-proguard-rules.pro is included in the library, so you don't need to include these proguard rules separately. These are the proguard rules used for this library.

# Papertrail
-keep class org.productivity.java.syslog4j.impl.net.tcp.ssl.SSLTCPNetSyslog
-keep class org.productivity.java.syslog4j.impl.net.tcp.ssl.SSLTCPNetSyslogWriter

-dontwarn org.productivity.java.syslog4j.impl.**
-dontwarn ch.qos.logback.core.net.*

Thanks

Thanks to @tony19 for logback-android.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].