{"id":16884848,"url":"https://github.com/f2prateek/ln","last_synced_at":"2026-05-20T04:48:49.410Z","repository":{"id":12693741,"uuid":"15366063","full_name":"f2prateek/ln","owner":"f2prateek","description":"[deprecated] Ln, a more natural Log.","archived":false,"fork":false,"pushed_at":"2016-08-29T05:54:55.000Z","size":90,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T07:12:07.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f2prateek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-21T21:37:27.000Z","updated_at":"2017-07-12T09:35:30.000Z","dependencies_parsed_at":"2022-08-26T09:41:58.481Z","dependency_job_id":null,"html_url":"https://github.com/f2prateek/ln","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f2prateek%2Fln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f2prateek","download_url":"https://codeload.github.com/f2prateek/ln/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560386,"owners_count":20472218,"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":[],"created_at":"2024-10-13T16:31:35.973Z","updated_at":"2026-05-20T04:48:44.387Z","avatar_url":"https://github.com/f2prateek.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Deprecated\n==============\n\nLn is deprecated.\n\nAndroid applications typically use the built-in android.util.Log facility to log information to the android console.\nLn is more natural log for Android. Forked from [RoboGuice](1).\nIt allows you to use a single API to control the log level, disable all logging (e.g. for release builds) and log to multiple facades.\n\nUsage\n--------------\n\n 1. Call `Ln#set` with your instance of `LnInterface`, such as `EmptyLn` (used by default) for release builds or `DebugLn` for debug builds.\n 2. Call `Ln`'s static methods everywhere throughout your app.\n 3. Call `Ln#setLogginLevel` to change the logLevel at different points in your app.\n\nCheck out the sample app in `ln-sample/` to see it in action.\n\nExamples\n--------------\n\n```java\nLn.v(\"hello there\"); // prints \"hello there\"\nLn.d(\"%s %s\", \"hello\", \"there\"); // prints \"hello there\" with varargs\nLn.e(exception, \"Error during some operation\"); // Throwables go at the FRONT!\nLn.w(exception, \"Error during %s operation\", \"some other\"); // Throwables and varargs\n```\n\nExtending\n-------------\n\nTo log to a different endpoint you have one of these options, simply implement `LnInterface`. If you don't want to implement all the methods, extend `EmptyLn` and override the ones you need.\n\nTo log to multiple endpoints (say analytics and crash server) :\n 1. Initialize an instance of `LnFacade`. This class is facade, and delegates all calls to list of `LnInterface`'s that it maintains.\n 2. Use `Ln#addLoggingEndpoint` to add your instances of `LnInterface`.\n 3. Call `Ln#set` with your instance of `LnFacade`\n\nDownload\n--------\n\nDownload [the latest JAR][1] or grab via Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.f2prateek.ln\u003c/groupId\u003e\n  \u003cartifactId\u003eln\u003c/artifactId\u003e\n  \u003cversion\u003e(insert latest version)\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'com.f2prateek.ln:ln:(insert latest version)'\n```\n\n\nLicense\n-------\n\n    The MIT License (MIT)\n\n    Copyright (c) 2013 Prateek Srivastava\n    Copyright (c) 2010 Xtreme Labs and Pivotal Labs\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n\n\n [1]: http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy\u0026g=com.f2prateek.ln\u0026a=ln\u0026v=LATEST\n [2]: https://code.google.com/p/roboguice/wiki/Logging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2prateek%2Fln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff2prateek%2Fln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff2prateek%2Fln/lists"}