{"id":13537050,"url":"https://github.com/florent37/Multiplatform-Log","last_synced_at":"2025-04-02T03:31:33.856Z","repository":{"id":91120177,"uuid":"156610018","full_name":"florent37/Multiplatform-Log","owner":"florent37","description":"Kotlin Multi Platform Logger, for android an ios : Logcat \u0026 print","archived":true,"fork":false,"pushed_at":"2020-02-18T13:02:29.000Z","size":117,"stargazers_count":51,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-03T02:32:14.788Z","etag":null,"topics":["android","ios","java","kotlin","log","logger","multi","multiplatform","native","platform","swift","timber","xcode"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florent37.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-07T21:24:33.000Z","updated_at":"2023-07-29T10:05:35.000Z","dependencies_parsed_at":"2024-01-16T15:40:41.205Z","dependency_job_id":"c0ff08bf-6625-40ce-9630-2127c9775040","html_url":"https://github.com/florent37/Multiplatform-Log","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMultiplatform-Log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMultiplatform-Log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMultiplatform-Log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMultiplatform-Log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/Multiplatform-Log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246751261,"owners_count":20827860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","java","kotlin","log","logger","multi","multiplatform","native","platform","swift","timber","xcode"],"created_at":"2024-08-01T09:00:54.126Z","updated_at":"2025-04-02T03:31:33.040Z","avatar_url":"https://github.com/florent37.png","language":"Kotlin","funding_links":[],"categories":["Libraries"],"sub_categories":["Debug"],"readme":"# Multiplatform Preferences\n\nUse a single object : `Logger` in your kotlin shared projects to display logs\n\nNote you can also use it in your real code on Android \u0026 iOs\n\nCompatible with kotlin android and kotlin native for iphone\n\n```kotlin\nclass MyPresenter {\n    \n    val TAG = \"MyPresenter\"\n\n    fun start(){\n        Logger.d(TAG, \"my message\")\n        \n        try{\n            //myMethod\n        } catch(e: Throwable){\n            Logger.e(TAG, e.message, e)\n        }\n    }\n}\n```\n\n\n# Download\n\nAdd the repository\n```groovy\nrepositories {\n    maven { url  \"https://dl.bintray.com/florent37/maven\" }\n}\n```\n\n## common\n\n [ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-log/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-log/_latestVersion)\n```groovy\nimplementation \"com.github.florent37:multiplatform-log:1.5.0\"\n```\n\n## ios\n\nUses inside the Console / print\n\n [ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-log/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-log/_latestVersion)\n```groovy\nimplementation \"com.github.florent37:multiplatform-log-ios:1.5.0\"\n```\n\n## android\n\nUses inside the Logcat\n\n [ ![Download](https://api.bintray.com/packages/florent37/maven/multiplatform-log/images/download.svg) ](https://bintray.com/florent37/maven/multiplatform-log/_latestVersion)\n```groovy\nimplementation \"com.github.florent37:multiplatform-log-android:1.5.0\"\n```\n\n# Disable logs on release\n\nEnable the logger just on debug :\n\n```kotlin\nLogger.enabled = BuildConfig.DEBUG\n```\n\n# Loggin methods\n\n## Debug\n\n`Log.d(TAG, message)`\n\n## Error\n\n`Log.e(TAG, message, throwable)`\n \n## License\n        \n    Copyright 2018 Florent37\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n       http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FMultiplatform-Log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2FMultiplatform-Log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2FMultiplatform-Log/lists"}