All Projects → florent37 → Multiplatform-Log

florent37 / Multiplatform-Log

Licence: Apache-2.0 license
Kotlin Multi Platform Logger, for android an ios : Logcat & print

Programming Languages

kotlin
9241 projects
shell
77523 projects

Projects that are alternatives of or similar to Multiplatform-Log

Logger
✔️ Simple, pretty and powerful logger for android
Stars: ✭ 13,093 (+26620.41%)
Mutual labels:  log, logger, timber
LogDNA-Android-Client
Android client for LogDNA
Stars: ✭ 22 (-55.1%)
Mutual labels:  log, logger
ng-logger
Angular logger service
Stars: ✭ 65 (+32.65%)
Mutual labels:  log, logger
clue
a extremely high performance log library for android. 高性能的Android日志库
Stars: ✭ 27 (-44.9%)
Mutual labels:  log, logger
react-native-log-ios
React Native iOS standalone logger
Stars: ✭ 37 (-24.49%)
Mutual labels:  log, logger
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (-6.12%)
Mutual labels:  log, logger
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (+73.47%)
Mutual labels:  log, logger
Logcat
Android 日志打印框架,在手机上可以直接看到 Logcat 日志啦
Stars: ✭ 189 (+285.71%)
Mutual labels:  log, logger
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (-46.94%)
Mutual labels:  log, logger
apollo-log
A logging extension for the Apollo GraphQL Server
Stars: ✭ 64 (+30.61%)
Mutual labels:  log, logger
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (-51.02%)
Mutual labels:  log, logger
Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+324.49%)
Mutual labels:  log, logger
Monolog Bundle
Symfony Monolog Bundle
Stars: ✭ 2,532 (+5067.35%)
Mutual labels:  log, logger
log
Aplus Framework Log Library
Stars: ✭ 14 (-71.43%)
Mutual labels:  log, logger
Xlog
Android logger, pretty, powerful and flexible, log to everywhere, save to file, all you want is here.
Stars: ✭ 2,468 (+4936.73%)
Mutual labels:  log, logger
JJSwiftLog
Swift log library for all platform
Stars: ✭ 51 (+4.08%)
Mutual labels:  log, logger
log
PSR-3 compatible logger
Stars: ✭ 32 (-34.69%)
Mutual labels:  log, logger
Acho
The Hackable Log
Stars: ✭ 189 (+285.71%)
Mutual labels:  log, logger
log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
Stars: ✭ 21 (-57.14%)
Mutual labels:  log, logger
guzzle-log-middleware
A Guzzle middleware to log request and responses automatically
Stars: ✭ 61 (+24.49%)
Mutual labels:  log, logger

Multiplatform Preferences

Use a single object : Logger in your kotlin shared projects to display logs

Note you can also use it in your real code on Android & iOs

Compatible with kotlin android and kotlin native for iphone

class MyPresenter {
    
    val TAG = "MyPresenter"

    fun start(){
        Logger.d(TAG, "my message")
        
        try{
            //myMethod
        } catch(e: Throwable){
            Logger.e(TAG, e.message, e)
        }
    }
}

Download

Add the repository

repositories {
    maven { url  "https://dl.bintray.com/florent37/maven" }
}

common

Download

implementation "com.github.florent37:multiplatform-log:1.5.0"

ios

Uses inside the Console / print

Download

implementation "com.github.florent37:multiplatform-log-ios:1.5.0"

android

Uses inside the Logcat

Download

implementation "com.github.florent37:multiplatform-log-android:1.5.0"

Disable logs on release

Enable the logger just on debug :

Logger.enabled = BuildConfig.DEBUG

Loggin methods

Debug

Log.d(TAG, message)

Error

Log.e(TAG, message, throwable)

License

Copyright 2018 Florent37

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.
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].